I need a chrome extension that will give me start a date picker for specific fields in a specific web page. Whenever someone clicks in one of the date fields a date picker should be show to the user, either above the fields or anywhere in the webpage and insert the selected date into the fields. I have been trying to do it, but no success so far. Here are the details:
The Webpage that this extension should be active: http://www.smartfleetonline.co.in/internet/trans_hist.jsp
The Code behind the fields is:
<input type="text" name="fromday" size="1" maxlength="2" value="">
<in开发者_Go百科put type="text" name="frommonth" size="1" maxlength="2" value="">
<input type="text" name="fromyear" size="2" maxlength="4" value="">
<input type="text" name="today" size="1" maxlength="2" value="">
<input type="text" name="tomonth" size="1" maxlength="2" value="">
<input type="text" name="toyear" size="2" maxlength="4" value="">
Even sample code would be very helpful. How to include jQuery UI elements in my plugin? Or is there any other plugin that will help me regarding this?
Why only for Chrome, try this datepicker out: http://jqueryui.com/demos/datepicker/
Of course it will work for all modern browsers because it is a jQuery, and you don`t care about the browser the user is using ;)
精彩评论