Hi,
how to create dynamic control and set id for that control using jquery.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Pradeep ShetPosted Jan 15, 2015, 2:40 AM
You can add the control using append method.
Foreg-
Suppose you want to add textbox within the div then you can add as shown below
var iCnt = $('#container input[type=text]').count() + 1;
$('#container').append('');
Hope this helps you, mark it as answered if it helped you.
Manish Kumar ChoudharyPosted Jan 9, 2015, 11:01 PM
Hi Mohan Subramanian,
Go through following links it will help you
http://stackoverflow.com/questions/8936652/dynamically-create-buttons-with-jquery
http://www.encodedna.com/2013/07/dynamically-add-remove-textbox-control-using-jquery.htm
http://codepattern.net/Blog/post/Dynamically-adding-controls-using-jQuery-aspnet