title: How to add an onclick button event?
body: <p>I have added a small onclick event to a button in my html form and its not working.This is the one I added,which is a basic one </p>
  
  <pre><code>function myFunction()
  {
  alert("Hello World!");
  }
  </code></pre>
  
  <p>and in html </p>
  
  <pre><code>&lt;button onclick="myFunction" class="btn btn-1 btn-1c"&gt;Credit Card&lt;/button&gt;
  </code></pre>
  
  <p>But this is not working,please check the fidddle <a href="http://jsfiddle.net/RzT68/8/" rel="nofollow">http://jsfiddle.net/RzT68/8/</a>     .Another pop up is coming if the field are not filled,but I cant figure out,how to remove it during clicking on a button.</p>