title: two elements in a same function jQuery
body: <p>How can I trigger an event that two html elements can trigger the event. <strong>rules:
   (the 1st element cannot trigger an event if the 2nd element is false. both are true in order to trigger the event)</strong></p>
  
  <blockquote>
    <p>the #select is select tag is a first element with the "option" Option 2<br> the #test5 is input radio type tag is the second element</p>
  </blockquote>
  
  <p>here is my code</p>
  
  <pre><code>$("#select").on("change", function() {
    if ($(this).val() === "Option 2") {
      if($("#test5").click() == true) {
        alert("wawi");
      }
    }
  });
  </code></pre>