Announcement

Collapse
No announcement yet.

Trying to use jquery datepicker

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Trying to use jquery datepicker

    I want to capture birthdays using the additional_field1 in the customer record. I have added it to the registration and one page checkout. I would like to add a popup calendar when the field is clicked so it gets entered in a certain format using jquery's datepicker function. We have it working on a different cart, but I can't seem to get it to work on 3dcart. The following is what I tried to add to my frame.html with no success.
    Code:
    <script type="text/javascript" language="javascript">
    function date_picker(){
    jQuery('input[name="additional_field1"]').datepicker({
          constrainInput: true,
               yearRange: '-100:+0',
               changeMonth: true,
               changeYear: true,
               dateFormat: "yy-mm-dd"
              });
    }
    </script>
    Any ideas?
Working...
X