title: jquery "if" something and "else" something
body: <p>I am just curious how would anyone make this. I am trying to figure out with lack of knowledge and of course I cannot make it.</p>
  
  <p>So it would be something like...</p>
  
  <p>If in jquery there is declared onClick function something like "firstGateway" and "secondGateway" how can I add what if there is first and what if its second.</p>
  
  <p>I can't even explain well.</p>
  
  <p>But let me try.</p>
  
  <pre><code>&lt;a onClick="firstGateway"&gt;YES FIRST!&lt;/a&gt;
  </code></pre>
  
  <p>That would be html piece and jquery would need to run following:</p>
  
  <pre><code>&lt;script type="text/javascript" src="http://fileice.net/gateway/mygate.php?id=492b542f45684b42"&gt;&lt;/script&gt;
  onClick=startGateway('123456');
  </code></pre>
  
  <p>and if it would be in html like this:</p>
  
  <pre><code>&lt;a onClick="secondGateway"&gt;YES SECOND!&lt;/a&gt;
  </code></pre>
  
  <p>Then jquery would run following:</p>
  
  <pre><code>&lt;script type="text/javascript" src="http://fileice.net/gateway/mygate.php?id=4465766c4278366467523838"&gt;&lt;/script&gt;
  onClick=startGateway('654321');
  </code></pre>
  
  <p>Hope you understand me. I will still try to make it work but I do not think I will be able to succeed.</p>