Grow your CSS skills. Land your dream job.

[Solved] Problems with JQuery Ajax return

  • # February 23, 2010 at 3:34 pm

    This is really confusing me.

    I have a JQuery AJAX call which works fine and returns all the data required. It also returns a drop-down box full of data and button to submit whatever is in the drop down box.

    The problem is that I cannot bind a click event to the button returned by the Ajax call. The following code does nothing:

    Code:
    $(“#loadFloor”).click(function(){
    alert(“True”);
    });

    Any ideas? Live example is at http://homepages.shu.ac.uk/~msinkins/ and you click on ‘Furnival’ in the breadcrumbs

    # February 23, 2010 at 3:47 pm

    Never mind, worked it out. Turns out the click function needs to be inside the AJAX call-back and will not work if it is in the general Javascript

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".