javascript - jQuery .after() not working in IE -


i trying add table row table using .after() it's not working in ie, keep getting error "object required" , error seems coming line 5151 in jquery library.

here code:

$('#view').live('click',function(){     var parent = $(this).parent();     parent.after("<tr><td>test</td></tr>");  }); 

any ideas?

a reason html code isn't valid without table tag.

create elements separate elements instead:

parent.after($('<tr/>').append($('<td/>').text('test'))); 

Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -