$(..)DatePicker在控制台中不是函数错误
这是我的孩子jsp,它将被替换为Master页面,看到这整个代码`
<% System.out.println("view details page called ***** "); System.out.println("view details page called ***** "); int id = Integer.parseInt(request.getParameter("id")); List list = new UserMethod().getUser(id); UserWS userWS = list.get(0); %> <!-- --> <!-- --> var $j = jQuery.noConflict(); $j(function() { $j("#datepicker").datepicker(); }); `![enter image description here][2]Hello i am using one Java Script date picker and i am using Ajax too in that. means to Replace Div into Master page. Here i am using one Java Script Calender Control into the Child Jsp means which is Replacing threw Ajax into the Master Page here my Code is. $(function() { $("#datepicker").datepicker(); }); DOB
我试图在母版页中也这样做,但它给出了同样的错误。 表示父页面和子页面存在问题。 可能存在冲突错误bcoz我也在使用其他JavaScript库所以我不知道真正的问题是什么。 因为我尝试将它分开并且工作正常。 请帮我解决这个问题。 预先感谢您的帮助。
您是否尝试过使用noConlict选项? jQuery.noConflict文档
试试这个: