Skip to content Skip to sidebar Skip to footer

Jquery Ajax Doesnt Trigger In Internet Explorer

I am using a function to trigger when any of a particular set of anchors are clicked. This works in Firefox 3 and Chrome. They don't exist when the page first starts loading as the

Solution 1:

It probably is relevant that the anchors are not there when the doc first loads. You could do a quick fix by using the live method. This will apply your event to whatever you're selecting even if it's added to the DOM later.

$("#BlogSelectList li a").live("click", function() {etc...});

Also, if you're using an anchor, you will probably need to set the href attribute to "#" so that it doesn't trigger the browser default behavior of navigating somewhere.

Solution 2:

<scripttype="text/javascript"src="jquery-1.6.1.min.js"></script><scripttype="text/javascript">
            $(document).ready(function () {
                $("#click").click(function () {
                    alert('hhi');
                    });
                    });

    </script><table><tr><tdid='click'>ravi</td></tr></table>

try this in IE8 and tell me. once this code has not run due to popup blocker in IE8. remove popup blocker

Post a Comment for "Jquery Ajax Doesnt Trigger In Internet Explorer"