Call Javascript onchange event by programmatically changing textbox value

前端 未结 8 1345
心在旅途
心在旅途 2020-11-30 08:59

the problem I\'m facing is this:

  • I have a textbox for a date range along side a calendar control.
  • When the user selects a date from the calendar, it
8条回答
  •  被撕碎了的回忆
    2020-11-30 09:54

    The "onchange" is only fired when the attribute is programmatically changed or when the user makes a change and then focuses away from the field.

    Have you looked at using YUI's calendar object? I've coded up a solution that puts the yui calendar inside a yui panel and hides the panel until an associated image is clicked. I'm able to see changes from either.

    http://developer.yahoo.com/yui/examples/calendar/formtxt.html

提交回复
热议问题