jquery - Dynamically adding text boxes in JQueryMobile UI. -
Currently I have a JQueryMobile form that has 2 text boxes but the scenario may be where I want to add more text boxes Must have to add. How to get it? ...
For example, the user will click an add button in the screen and it will bring a new text box to the screen. I have tried to attach but it is not working properly.
How to find it by adding text boxes in the JQueryMobile form dynamically ??
Thank you for your time in advance.
You said on your comment that the argument should be similar to jquery. In Jquery I do this to create some new form elements:
// element where you want to add your dynamic form element body body = .getElementsByTagName ('body'); // Create a text box and add it to the body of the document. $ ('& Lt; Input & gt;'). Etter ({'type': 'text', 'placeholder': 'some text'}). Annex (body);
Comments
Post a Comment