c# - 2 Jquery in one asp.net page -
this question exact duplicate of:
i have accordion menu , datepicker put .js file in 1 folder named jquery. when running page has both jqueries datepicker works fine accordion menu doesn't work properly.
$(document).ready(function () { $(".topnav").accordion({ accordion: false, speed: 500, closedsign: '[+]', openedsign: '[-]' }); });
$(document).ready(function () { $("#txtboxdob").datepicker({ changemonth: true, changeyear: true, showbuttonpanel: true, yearrange: '1940:2040' }); });
.ui-datepicker { font-size:72.5%; background-color:activeborder; color:maroon; font-family:verdana; }
you have 2 handlers defined document.ready() event...try combining events should occur when document ready same event:
$(document).ready(function () { $(".topnav").accordion( { accordion: false, speed: 500, closedsign: '[+]', openedsign: '[-]' }); $("#txtboxdob").datepicker( { changemonth: true, changeyear: true, showbuttonpanel: true, yearrange: '1940:2040' }); });
Comments
Post a Comment