$(..)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(); });  
<input type="hidden" name="id" value="">
First Name
<input type="text" name="firstname" id="firstname" value="" class="inputtext" />
Last Name
<input type="text" name="lastname" id="lastname" class="inputtext" value="" />
Email
<input type="text" readonly name="email" id="email" class="inputtext" value="" />
DOB
Gender
Male Female Male Female
Password
<input type="text" name="password" id="password" class="inputtext" value="" />
Confirm Password
<input type="text" name="confirmpassword" id="confirmpassword" class="inputtext" value="" />
Status
 
`![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文档

试试这个: