jquery event select event

Different methods are executed according to the different options selected in the select drop-down list, which are often used in work. Here, the select event of Jquery is used.

Here, add an id called label_id to the select, then find the node through the id selector, and use the change event to perform related operations

The Jquery code is as follows:

// Trigger 
    $("#label_id").change( function (){
       var label_id=($(this).val ());
       // Equity financing 
      if (label_id==35 ){
          $(".three_new_board").hide();
          $(".equity").show();
      }
    });

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324524364&siteId=291194637