change event of html hidden field

前端 未结 2 455
情话喂你
情话喂你 2020-12-10 00:14

I want to check the change of html hidden field using jquery and i tried for this but the change event did not worked.

Somebody has and idea how to handle this?

2条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-10 01:04

    in this case you know exactly, when the value changes (onchange of dropbox), because you change it by your code, so there is no need to catch an event.

    simply call your reaction function in the onchange part of your dropbox event.

提交回复
热议问题