http://www.aspsnippets.com/Articles/jQuery-UI-DatePicker-Calendar-Example-in-ASPNet.aspx
I have no problems using it once but i need to use it twice in the same page so only one of them works, how can i solve this? thank you in advance!
Hi Michdel,
Please refer below query
JQuery
$(function () { // You need to mention the textbox names on which you want to apply datepicker. $("[id*=FirstTextBoxName],[id*=SecondTextBoxName]").datepicker({ showOn: 'button', buttonImageOnly: true, buttonImage: 'Image/calendar.png' });
Hope this works for you
Finally solved this by making a class to be used by each datepicker. Thank you :)
$(function () { $('.dateTxt').datepicker({ showOn: 'button', buttonImageOnly: true, buttonImage: 'http://iconizer.net/files/Stuttgart/orig/calendar.png' }); });
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.