On Apr 14, 2009, at 10:47 PM, Zhx wrote:
here is my code, it works fine in FF, but in IE, the "index" message did not popup. Anyone could give me a suggestion to figure out this? jQuery("#demoform dt").each(function(index,domEle){ if (jQuery(domEle).text() == "ISSN:") { alert(index); exit; } })
you're probably getting a javascript error in IE that is terminating the script. Try replacing exit; with return false;
--Karl ____________ Karl Swedberg www.englishrules.com www.learningjquery.com