 <p>The problem is that everytime you click <code>deleteData</code> you will bind click to <code>yes</code> and <code>no</code>, to if you click <code>deleteData</code> twice, you bind click to <code>yes</code> and <code>no</code> twice, because it's inside <code>deleteData</code> click event.<br> So, to prevent this behaviour you have to remove it from inside <code>deleteData</code> event.</p> <p>You can try <a href="http://jsfiddle.net/nshVC/" rel="nofollow"><strong>this</strong></a> demo.<br></p> <ul> <li>Type how many binds do you want</li> <li>Click some text</li> <li>See how many times it logs the value</li> </ul>