Call Javascript onchange event by programmatically changing textbox value

前端 未结 8 1284
心在旅途
心在旅途 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:43

    You're misinterpreting what the onchange event does when applied to a textarea. It won't fire until it loses focus or you hit enter. Why not fire the function from an onchange on the select that fills in the text area?

    Check out here for more on the onchange event: w3schools

提交回复
热议问题