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.enter image description here

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(); 

demo


Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -