left click + hold = add checkbox
- by Reigel
html
<button>a</button>
<div class="headerer">
<p>visit <a href="http://reigel-codes.co.cc">reigel-codes.co.cc</a></p>
</div>
problem
how can I add anchors checkbox after <button by pressing and hold left click ?.. then stop adding when left click is release...
I have tried so far,
$(document).ready(function(){
$('button').mousedown(function(){
$(this).after('<input type="checkbox">')
});
})