title: How to check before submit?
body: <p>I need to check if the user clicked on a button before I preform the submit.</p>
  
  <p>Right now,
  I am using <code>$(document).ready(function(){</code> and I want to put in it, the code to check if the button was pressed or not.</p>
  
  <p>This "button" its just a simple <code>div</code>, with background image that changes the image if you click there.
  So I need to add a variable so I can make an if statement, right?</p>
  
  <p>I know there is  preventDefault function in JQ, but tried with no success to work with it.</p>
  
  <p>thanks for help</p>