hi can anyone tell me how a text field is generated when a button is clicked and that button is on jquery side. I have done the following :
$("#addButton").click(function()
$(this).before('<input type="textbox" name="textbox' + tempCounter + '" id="textbox' +
tempCounter + '" value="no use" /><br/>');
In this way whenever a button with id “addButton” is clicked , a text field is generated but the problem is this text field is generated on jquery side and i want it to be a part of htmllike whenever the same button is clicked a new text field is autogenerated inside the html page. I had tried it using for loop but stuck … can anyone suggest?
You could add it upp like this:
But be aware, it will never really exist in the HTML code.