• Resolved heena1

    (@heena1)


    Hello,

    I need to reset value if date time picker after click on another button.
    So, when click on that button reset value of datetime picker using input name.
    How can i reset value using input name ?

    I used that into contact form 7 plugin.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @heena1 you’ll need to add some custom javascript. You’ll most likely need to add a listener to the other button to trigger the dtp_init(); function to reset the datepicker. The plugin itself doesn’t have any option to do that automatically.

    Thread Starter heena1

    (@heena1)

    Hello,

    Thank you but i solved it using below code.

    jQuery(“input[name=’call_datetime’]”).datetimepicker({ value: new Date() });

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How can i reset value using input name ?’ is closed to new replies.