I need some help in implementing jQuery.
I have a dropdown list with the following code
Programs*:
On the change event of my drop down list (javascript function "checkbox()" gets called), and the function fetches course list and display that list "course" tab in checkbox form.
function checkboxlist() {
document.userTrainingForm.action = "/UserRegistration/training/main/student/getCourses";
document.userTrainingForm.submit();
}
Course tab code snippet
Page is getting refreshed on every On Change event. Can somebody please help me to write "function checkboxlist()" in jQuery ***(jQuery.ajax())*** , so that page doesn't get refreshed on every onchange event.
No. What we can do, and will do very well, is answer any problems you encounter when writing checkboxlist()yourself.
以上就是Need Help in to write jQuery function的详细内容,更多请关注web前端其它相关文章!