Problem with jQuery with Chrome

I have a page using jQuery to call ajax. Viewing a page in Chrome shows the following error in the developer console:

 Uncaught TypeError: Cannot set property 'display' of undefined

So far, the same page runs in firefox 3.6.6 without any errors in the firebug console.

The error comes from a line in j-query-1.4.2 (as shown on the chrome console)

Does anyone else run into similar issues?

Basically, I use a DatePicker that appears in Modal Dailog.

Here is the code:

$(document).ready(function () {
$("#inputs input[name=dateField]").datepicker(
        {
            showOn: 'both',
            dateFormat:'dd/mm/yy HH:II TT',
            showButtonPanel: true, 
            maxDate: '+0D',
            buttonImage:'calendar.gif',
            buttonImageOnly: true,
        }
);
 });
+5
source share
3 answers

Chrome. " " ( ) . / :

$("#inputs input[name=dateField]")

, . "context", "selector" "__ proto__", jquery . length, , ( "0", "1" ..), - ( somethings).

, , Chrome.

+1

, . IE . , jquery . - .

0

I think that there is no such INPUT field with the name "DateField" (for the attribute "name"), inside its parent container, the value of the attribute "id" of which is the "input". Or perhaps the element of the parent container is not defined with its corresponding id attribute value.

Hope this helps.

0
source

All Articles