I am trying to remove all extra spaces from large large html table(MVC Razor view) as a IE9 large table bug fix so that it will display correctly on IE9 browser and below is a sample code for that:
var response_html =$('#section1').html();
response_html = response_html.replace(/td>\s+<td/g,'td><td');
response_html = response_html.replace(/tr>\s+<tr/g,'tr><tr');
$('#section1').html(response_html);
But after running this piece of code all previously attached DOM events inside table cells( datepicker, checkboxes, textbox events) are NOT working at all. Could you guys please help me to sort out this?
Thanks in advance.
Mik