You may want to "return false;" at the end of your click handler function
that you bind to "#pendingUsers a" so that the link won't be followed.

--Erik


On 8/14/07, Steve Finkelstein <[EMAIL PROTECTED]> wrote:
>
> Hi all,
>
> This is a rather complicated issue, for a novice at least.
>
> I have HTML that gets injected into the DOM, and this is after a
> completely separate HTML gets injected via .load() into a separate div.
>
> So essentially, when you load the page, a div gets populated with .load(),
> and when you click a link from that populated data, more HTML gets injected
> via the following code:
>
>     $('#pendingUsers').load(' index.php/meduser/check_pending_users',false,
> function() {
>      $('#pendingUsers a').click(function() {
>          $.post('index.php/meduser/pull_user_information', {id:
> $(this).attr('rel')},
>          function(data) {
>                  $('#main').html(data);
>          }
>          );
>      });
>     });
>
> I'm looking to bind .click() to an element within $('#main').html(data);,
> over to <input type="button" id="button" name="accept" value="Accept">
>
> Would anyone be kind enough to give me hints as to how I can access my
> button via a click action in this setup?
>
> Thank you kindly for all of your assistance!
>
>
>

Reply via email to