jQuery Birthday Picker dealing with form refresh

I'm using an excellent jquery plugin for Birthday Date picking for my web form. Demo here: http://abecoffman.com/stuff/birthdaypicker/ The problem I'm dealing with is on a form validation. My form validation redirect back to the same page and I'll lose the date that was picked. Is there any way to add an option to the javascript of the date picker: http://abecoffman.com/stuff/birthdaypicker/bday-picker.js so that I can set a "default selected date". The config can work to something like: $("#picker1").birthdaypicker({ chosenDay: 1;" chosenMonth: 28;" chosenYear: 2011;" }); This will set the "selected" date to January 28, 2011.
That plugin does not appear to support a selected date at initialization time. Perhaps you could modify it.

以上就是jQuery Birthday Picker dealing with form refresh的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » JavaScript 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏