search

Home  >  Q&A  >  body text

javascript - How does jquery give the select option an event that is triggered when it is clicked, as shown in the figure. If you select a custom trigger time?

As shown in the picture, an event is triggered when the user selects customization. How to write it.

仅有的幸福仅有的幸福2756 days ago644

reply all(2)I'll reply

  • 我想大声告诉你

    我想大声告诉你2017-05-16 13:28:47

    $('.xx').on('change',function(){

    if($(this).val()=="星期一"){
        alert("我是自定义");
    }

    })

    reply
    0
  • 过去多啦不再A梦

    过去多啦不再A梦2017-05-16 13:28:47

    Select different events according to your actual business needs. The select tag is used here. It is recommended to use the change event.
    Example:
    $('.xx').change(function(){

    });

    reply
    0
  • Cancelreply