I have a list being returned from a database that can potentially be a different size each time. The list is loaded onto a html page <div id="availableTimes"></div>
using
$.each(returnData.availableTimes, function (index, value) {
$("#availableTimes").append('<input type=radio name=availableTimes value= '
+ value.id + '>' + '<label id=' + value.id + '>' + value.time + '</label>');
});
What I would like to be able to do is limit the amount of radio buttons and labels displayed per line to 4. Is there a value I can set in CSS or do I have to insert a <br />
every 4 records in the JavaScript?