• 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

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘What is the correct Jquery syntax?’ is closed to new replies.