This is because JQuery references the input id in the client side and
it differs from the aspnet textbox id.
You need to preprocess to get the ClientID for the aspnet object
before using it in JqQuery, like this:

$("#<% = txtDate.ClientID %>")

Let me know if worked ok, check this link for clarification:

http://www.w3schools.com/aspnet/prop_control_standard_clientid.asp

Thanks,
Leo!

On Apr 19, 2:48 am, bader shehri <[email protected]> wrote:
> thanks Dave for replay
>
> i try to do this code $("#txtDate") but its not work at all also the
> datepicker is not show
> with is code $("input[id$='txtDate']") its work with firefox and chrom with
> no error
> Only IE browser given JScript error when i select the date from datepicker
>
> any another sulotions ..
>
> On Sat, Apr 18, 2009 at 11:33 PM, Fontzter <[email protected]> wrote:
>
> > Couple of things:
>
> > Don't use  $("input[id$='txtDate']").  Instead just use $("#txtDate").
> > If you really want an inline datepicker, use a div element, not a
> > textbox.  (I think an asp:Panel turns into a div, but you can just put
> > a div directly into html.  If you do this you should specify an
> > altField to hold your value.
>
> > Hth,
>
> > Dave
>
> > On Apr 18, 4:41 am, bader shehri <[email protected]> wrote:
> > > i got the error only in IE
> > > no error in firefox
> > > this image will explain more
>
> > > [image: Untitled-1.jpg]
>
> > > this is my sicrpt
> > > <script type="text/javascript">
> > >              $(document).ready(function() {
> > >                  $("input[id$='txtDate']").datepicker({
> > >                      inline: true
> > >                  });
> > >              });
> > >     </script>
>
> > > <body>
> > > <asp:TextBox ID="txtDate" runat="server" CssClass="style2" Width="125px"
> > > Height="20px"></asp:TextBox>
> > > </body>
>
> > > 2009/4/16 BNieland <[email protected]>
>
> > > > you&me,
>
> > > > I would suggest that you check the error console on Firefox.  Perhaps
> > > > you are blowing an error in both browsers?
>
> > > > Also, I think the $ in "$("input[id$='txtDate']").datepicker({ " is
> > > > causing your error.
>
> > > >http://docs.jquery.com/Selectors/attributeEquals#attributevalue
>
> > > > Best,
>
> > > > BNieland
>
> > > > On Apr 15, 5:02 am, "you&me" <[email protected]> wrote:
> > > > > I add JQuery to my project (datepicker)
> > > > > when i run the page its give me error
> > > > > (Microsoft JScript runtime error: Object doesn't support this
> > property
> > > > > or method)
>
> > > > > i don't face any problem with firefox only IE
>
> > > > > this is the code :
>
> > > > > <link type="text/css" href="JQuary/css/smoothness/jquery-
> > > > > ui-1.7.1.custom.css" rel="stylesheet" />
> > > > >                 <script type="text/javascript"
> > > > src="JQuary/js/jquery-1.3.2.min.js"></
> > > > > script>
> > > > >                 <script type="text/javascript" src="JQuary/js/jquery-
> > > > > ui-1.7.1.custom.min.js"></script>
> > > > >                 <script type="text/javascript">
> > > > >                    $(function() {
> > > > >                         $("input[id$='txtDate']").datepicker({
> > > > >                         inline: true
> > > > >                         });
> > > > >                     });
> > > > > </script>
>
> > > > > <body>
> > > > >         <asp:TextBox class="datepicker" ID="txtDate" runat="server"
> > > > > CssClass="style2" Width="125px"></asp:TextBox>
> > > > > </body>
>
> > >  Untitled-1.jpg
> > > 254KViewDownload
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to