iPhone Jquery run function on confirm = true
<p>I'm using html / jquery to make my phone list, and I want to have a confirm dialog to do the action, but even if I tap cancel, the action is fired...</p>

<p>also, is there any chance of using jquery and cycript together?</p>

<p>Thanks</p>

<pre><code>$(".btns_numeros").click(function() {
        confirmacao($(this).attr('id'));
    });
    //
    function confirmacao(numero) {
        var resposta = confirm ("Ligar para "+numero+" ?");
        if (resposta) {
            var ligar = "&lt;a href='tel:"+numero+"'&gt;&lt;/a&gt;";
            window.location.href = ligar;
        } else {
</code></pre>

<p>event.preventDefault();</p>

<pre><code>            return false;
        }
    }
</code></pre>
