Beginner jQuery Question about creating DOM elements
hi all,
pretty new still to jQuery and trying to figure out where i can reduce typical JS in favour of jQuery syntax.
Say i have an array of items in JS. These items would correspond to table rows and the items have array data in them like columns. Example
item1Title,item1desc,item1date
item2Title,item2desc,item2date
....
item7Title,item7desc,item7date.
now typically i would loop through the collection and create divs or table cells and rows based on traversing the data in a for each or typical for loop - this would then output a string of html that could be appended to a containers innerHTML property and render out a list or table format. Is there a way to do this differently (or more quickly) using jQuery?
TIA,