checking condition onclick event of a button
<p>Is it possible to check if (condition) onclick of an event of a button? Because I need to check two functions which are in separate .js files. Also, both the functions should return true to continue forward.</p>

<pre><code>Example:

&lt;input type="button" name="saveButton" onclick="" value="Save" /&gt;

Two functions are validateSelect() in one .js file and validateSave() in 
another .js file.
</code></pre>

<p>validateSave() will only be called if validateSelect() returns true. So can we check onclick event of button?</p>
