Dialogs msg, txt, input based on jQuery