Call jquery datepicker from link and send the date through a post call

Posted by Alex on Stack Overflow See other posts from Stack Overflow or by Alex
Published on 2010-05-28T14:13:51Z Indexed on 2010/05/28 14:21 UTC
Read the original article Hit count: 304

Hi all,

I need to make the datepicker show when I click on a link and then send the selected date to a different page through a post call.

T tried to use this code for the link call:

$(".click-on-link").click(function(){
    $('#datepicker').datepicker({
        changeMonth: true,
        changeYear: true,
        dateFormat: 'dd/mm/yy',
        firstDay: 1
    });
});

but it's not working. Any idea?

Thanks!

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about jquery-ui