2.9.09

jQuery issues on partial postback

While using jQuery we are used to writing all the logic inside

$(document).ready(function() {

//jQuery functions and logic

)};

Inside this we use notation like $(.classname) etc to get the element variables instead of using the traditional clientid's to refer as in Javascript.

The problem with this is that the id's wont be bounded on partial post back while using ajax etc. This is because DOM elements changes are lost on postback

So insead of loading on document.ready use add_load as below

Sys.Application.add_load(function() {

//jQuery functions and logic

)};

This should resolve all the issues associated with jQuery not working on partial postback