title: Pass a value to trigger click function
body: <p>I've got 3 buttons and I've used their calss to create a click function.</p>
  
  <pre><code>$('.abc').click(function(){
       if (val).is(':visible')){
         //do something
       }
  });
  </code></pre>
  
  <p>I've got another click function as below</p>
  
  <pre><code>$(".custom-rmenu li").click(function(){
       // This is the triggered action name
       switch($(this).attr("data-action")) {
       // A case for each action.
         case "case1": alert("first"); break;
         case "case2": alert("second"); break;
         case "case3": alert("third"); break;
       }
  });
  </code></pre>
  
  <p>My question is, I need to trigger the <code>$('.abc').</code> click function via the <code>$(".custom-rmenu li").</code> click function. How do I pass a value (val) from each case to the <code>$('.abc').</code> click function?</p>