I need help understanding the JQuery DatePicker widget examples here:
First of all, in JQuery, what's the difference between
$(".xxx") selects elements with class xxx
$("#xxx") will select an element with id xxx
$(button) selects button elements
But I don't understand, $.
The explanation here made no sense to me:
In the examples on the JQuery datepicker tutorial, what is this:
What is this:
$( ".selector" ).
Is it saying that some element with the class, "selector" has a datepicker object in it?
But then, when I try this, it only shows the input element:
<div><input class="test"> <script> $( ".test" ).datepicker("show") </script>
Even though this works:
$( ".test" ).hide();
That's from the show() example in:
How would code like:
$.datepicker.parseDate( "yy-mm-dd", "2007-01-26" )$( ".selector" ).datepicker( "show" );// and
work in a full example like in this context:
<body><div id="datepicker"></div><script>$( "#datepicker" ).datepicker();</script></body>
thanks in advance