I have several td
s, with ids = row[0], row[2] row[4] and so on.
<td id="row[4]">02:45</td>
<td id="row[6]">03:45</td>
The content in these are times like 03:45, 04:45 which I want to change to 03:15, 04:15 etc. using jQuery.
EDIT:
I ended up with this:
jQuery('td[id^="row"]').each(function(){
min = parseInt(jQuery(this).text().substr(3,2)) + 30;
min %= 60;
new_time = jQuery(this).text().substr(0,3) + min;
jQuery(this).text(new_time);
});
Is there a neater way to do this now ?