Monday, 19 August 2013

Date picker JS: how to have it work on multiple form fields

Date picker JS: how to have it work on multiple form fields

I am using this plugin with WP:
http://wordpress.org/plugins/cf7-datepicker-alternative/
The .js file includes this code:
jQuery(document).ready(function($) {
$('#fieldName1').datepicker({
autoclose: true
});
});
Does anyone know how to doctor this bit of code so the date picker will
function in multiple fields in the same form, such as fieldName2 and
fieldName3 as well as fieldName1?
I thank you in advance for your efforts.

No comments:

Post a Comment