Looks like what's happening is the update panel (.NET right?) replaces
the entire html content with the asynchronous postback.  At this
point, none of your HTML elements are bound to the event handlers
since they were all rewritten.  You could prevent this by doing one of
2 things -

1)  Event delegation - handle the events at a top level container,
that way, as long as you're not wrapping that container in the update
panel, your javascript won't stop working
2)  Use a .NET function that rebinds js events after the postback.
For example, here, you should use the endRequest function, put the js
code that you need triggered.

Sys.WebForms.PageRequestManager.getInstance();
instance.add_endRequest( function(){functionName();});


As for checking a radiobutton is checked?
if($('#radiobutton').attr('checked'))

Return value is a boolean.


On Oct 28, 7:12 am, Byte1234 <[EMAIL PROTECTED]> wrote:
> I have a form with updatePanel. I ahve Jquery inimplemented on this
> form.
>
> Everything works fine, but when a asynchronous postback takes place
> when I clickc the button inside the updatePanle, all Jquery features
> goes away.
>
> I googled for this and found that, I need to write the Jquery code in
> PageLoad, can anyone give me a sample code example for this...?? Also
> How to check in jquery , if a perticular radiobutton is checked/
> selected...???
>
>  Thanks in advance....

Reply via email to