Click here to Skip to main content
15,905,414 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi I need to create checkboxes dynamically in a popup.When user clicks,we need to generate checkboxes according to the no: of customers.how to generate checkboxes dynamically using jquery?
Posted
Comments
Taha Akhtar 19-Nov-13 6:27am    
just a hint

//start loop
var len=$("table.addImage tr").length+1;
var newtr='<tr><td><input id="chkbx'+len+'" name="chkbx'+len+'" type="checkbox" /></td></tr>';

$('table.addImage tr:last').after(newtr)

end loop
Aradhana Krishna 20-Nov-13 2:48am    
thanks ..it s working

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900