ruby on rails 3 - need to add date picker in all the rows using Jquery -
i have view image attached. want add date picker column expiry date in rows.
here first row contains id column expiry date 'expiry_1_date'
2nd row -> 'expiry_2_date' 3nd row -> 'expiry_3_date' 4nd row -> 'expiry_4_date' 5nd row -> 'expiry_5_date'
please me acheive desired result in jquery. in advance!!!
use starts selector. , call datepicker method.
try this
$('input:text [id^="expiry_"]').datepicker();
or alternate way add class each text box.
then use
$('.someclass').datepicker();
Comments
Post a Comment