• Is it possible to have todays date automatically inserted into the date-498 form tag as opposed to having the user manually entering it?

Viewing 1 replies (of 1 total)
  • Thread Starter will2016

    (@will2016)

    Ok I have a partial answer to this question. It can be done using jquery.

    The code looks like this:

    $(document).ready(function(){
    var date = new Date();
    $("#dates").datepicker({
    dateFormat: 'd-M-y'
    }).datepicker('setDate', date);
    }. 

    Where “#dates” is the ID of the text box field.

    However, I am not sure where this code should be placed. I found it on stackoverflow. The asker said it worked.

    If anyone can clarify where it would go, that’d be great.

Viewing 1 replies (of 1 total)
  • The topic ‘Inserting todays date in date field’ is closed to new replies.