Hoi guys! I define a event trigger $('#id div a).click(). The url in the href attribute of the a tag is called via $.ajax and the returned data is inserted into the #id element. So, the actual HTML in the #id event is replaced by the data AJAX response data. After the data was inserted into the #id element, the click event is not working anymore for HTML code which was inserted in the #id element. What can be the reason for this? Thanks so much for your help!
This script does not work for IE7 and IE6, it gives an error on line 12, sign 3 and 5: (function($) { alert('1'); var settings = { effect: { duration: 100, }, }; $.fn.menu = function() { alert('2'); $(this).each(function() { alert('3'); $(this).find('/li').hover(function() { alert('4'); showItem($(this)); }, function() { alert('6'); hideItem($(this)); }); }); return this; }; function showItem(item) { alert('5'); item.find('/a').addClass('active'); item.find('/ul:hidden').slideDown(settings.effect.duration); }; function hideItem(item) { alert('7'); item.find('/a').removeClass('active'); item.find('/ul:visible').slideUp(settings.effect.duration); }; })(jQuery); Any idea what's wrong? Thanks so much! =o)
This gives me an error in IE6 and IE7 on line 12 on position 3 and 5: alert('javascript running...'); (function($) { alert('1'); var settings = { effect: { duration: 100, }, }; $.fn.menu = function() { alert('2'); $(this).each(function() { alert('3'); $(this).find('/li').hover(function() { alert('4'); showItem($(this)); }, function() { alert('6'); hideItem($(this)); }); }); return this; }; function showItem(item) { alert('5'); item.find('/a').addClass('active'); item.find('/ul:hidden').slideDown(settings.effect.duration); }; function hideItem(item) { alert('7'); item.find('/a').removeClass('active'); item.find('/ul:visible').slideUp(settings.effect.duration); }; })(jQuery); What's wrong with the code? It works perfectly in Firefox. Thanks so much for your help! =o)
This doesn't work as intended for me: <a href="http://pastebin.ca/152458">http://pastebin.ca/152458</a> The value of the message field will not be set to an empty string. What's wrong? Is it me? Thanks for help! _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/