Onchange open URL via select - jQuery

前端 未结 14 1136
长情又很酷
长情又很酷 2020-11-27 10:15

What would be the best way to attach an event so on change of a select option a URL. Store the href in an attr and grab it on change?

14条回答
  •  暖寄归人
    2020-11-27 10:41

    Super easy way is as following. No need to create a function.

    
    

提交回复
热议问题