Tuesday, December 22, 2009

[jQuery] Re: js function to jQuery

Thanks much Sime Vidas, it worked! Since mine is an aspx with an AJAX
UpdatePanel, jQuery(document).ready(function(){...}); did not work for
me. So I implented it in the pageLoad as below:

jQuery.noConflict();
function pageLoad() {
jQuery("#CollapseExpandTd").click(function() {
jQuery("#TreeviewTd").toggle();
jQuery("#MenuBarTd").toggle();
});
}

Thanks again!

No comments: