What is the correct Jquery syntax?
-
Hi,
I just bought WP Coder and I am trying to insert Jquery. But it had no effect on the targeted pages.
Should the Jquery script start with: jQuery(function($){
?
And is this syntax corredt?
jQuery(function($){
$(‘#haaldatum’).change(function() {//bereken aantal dagen een toon in tekstvakje met id:aantaldagen
var start= $(‘#brengdatum’).datepicker(‘getDate’);
var end= $(‘#haaldatum’).datepicker(‘getDate’);
days = (end- start) / (1000 * 60 * 60 * 24);
//alert(Math.round(days));
$(‘#aantaldagen’).val(Math.round(days));});
});Thanks in advance for yout answer.
Beste regards,
Pieter Hoogstad
Betty’s Hotel
Netherlands
- The topic ‘What is the correct Jquery syntax?’ is closed to new replies.