$document not defined
$document not defined
Hi All,
I am getting $document.ready(function() not defined in the firebug console.
I have seen that in most cases this is caused when the jQuery core is missing or the path is invalid. I do not believe this is the problem in my case becuase firebug shows the code as being loaded successfully and it is readable.
I have the following scripts in my head;
- <script type="text/javascript" src="jquery-1.4.2.min.js"></script>
- <script type="text/javascript" src="jquery.validate.js"></script>
- <script type="text/javascript">
- jQuery.validator.addMethod(
- "selectNone",
- function(value, element)
- {
- if (element.value == "none")
- {
- return false;
- }
- },
- "Please select an option."
- );
-
- ( function($) {
- $document.ready(function()
- {
- $("form#form").validate(
- {
- rules: {
- date:
- {
- required: true,
- date: true
- },
- run1:
- {
- required: true,
- selectNone: true
- },
- chipuse:
- {
- required: true,
- selectNone: true
- },
- chiprec:
- {
- required: true,
- selectNone: true
- }
- },
- });
- });
- })(jQuery);
- </script>
The function($) was something suggested here to help resolve this issue but it does not help.
Any suggestions are appreciated.
Bala.