i have written following function in JS which is called on click of some element in Client Side.I want to loop thru in jQuery,but following code is not working.
function HideShowMenu( pStart, pLength)
$(document).ready(function(){
for ( i=pStart ; i <= pLength ; i++ ) {
$('#tr_menu_'+i).show();
}
});
// return
return;
}
How can i go about it?
You are misusing
$(document).ready();. Correct way is something like this:$(document).ready()should be outside any other function.