1
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

 $(document).ready(
 function () {

     $("input[id$='txt_ClientIntakeDate']").val("Text From Jquery");

     $("input[id$='txt_ClientIntakeDate']").datepicker();

 }

 );

I added the above code in the asp.net page which contains master page. The first statement is working and display the text in the text box. and the second statement is displaying error"Object doesn't support this property or value". I added both jQuery and jQuery UI reference. I run it in IE and firefox. Do you have any idea about this error.

2 Answers 2

1

Your jQuery UI library isn't getting included correctly, double check that <script> tag. For instance, in Firefox view source and click on the link in that tag (it turns the src into a link), does it come up?

  • If not, fix your reference locally or include it from a CDN.
  • If your src is valid, make sure you're not including jQuery core again in the page, which will overwrite any plugins, including jQuery UI.
Sign up to request clarification or add additional context in comments.

Comments

0

This works for me

$("input[name*='<%=txtDate.ClientID%>']").datepicker({
        changeMonth: true,
        changeYear: true

        });

I guess you are missing name*

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.