I am currently generating the following div:
<div class="dates" >November 18, 2011 7:30 pm November 19, 2011 7:00 pm </div>
I want to use jQuery to on the load of the page change the div to read like this:
<div class="dates" >November 18, 2011 7:30 pm<br />November 19, 2011 7:00 pm<br /></div>
Wanted to get jQuery to change instances within the div of pm to pm<br />
Any ideas?
$('.dates').html($('.dates').html().replace('pm', 'pm<br />'));http://jsfiddle.net/jLcKa/