The Lodge is members-only design/dev videos and Office Hours.

Next Office Hours Session: "Implementing an SVG Icon System" Nov 30 - 6:00 PM Eastern

[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:


    Any ideas? Live example is at and you click on ‘Furnival’ in the breadcrumbs

    # February 23, 2010 at 3:47 pm

    This reply has been reported for inappropriate content.

    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.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed