Question and answer is powered by AnsPress.io
I want to use for loop in jQuery when I get some data from the database. Please help me to do it.
Hi, jQuery’s each() function is used to loop through each element of the target jQuery object. use for loop in jQuery when I get some records from the database. Follow this example
for(i = 0; i < result.length; i++){ $("#divid").append("<p>your code</p>"); }