Issue with more multiple functions in one onClick
<p>I have two function and I need to execut in one <code>onClick</code>. The first one is to confirm the submit, if the user press <code>yes</code> it should execute the second function. It is not working with me. Any help please.</p>

<p>below my code:</p>

<pre><code>&lt;Script&gt;

function checkSubmit(){

if(confirm('Are you sure you want to submit the data?');)
    sendData();
}

&lt;/Script&gt;
</code></pre>

<p>The button: </p>

<pre><code>&lt;input type="submit" id="send_data"  class="send_data" value="Send" onclick="checkSubmit()"/&gt;
</code></pre>

<p>THANKS FOR ALL ^_^</p>
