jquery - Frame appearing around my close icon when clicked -
i have div "x" image background can click close parent element:

the code around is:
function remove_cell(el) { $(el).closest("div.cell").remove(); } <div class="handle"> <div class="grip"></div> <div class="closex" onclick="remove_cell(this)"> </div> </div> but when click "x" div ugly frame around handles. remove works when mouse button released, know putting frame on mousedown , how can rid of it?
thanks
in code, stop event propagation or return false stop click clicking on elements below popup window
function remove_cell(el) { $(el).closest("div.cell").remove(); return false; } edit: actually, since you're using inline code (not best idea), it'll need inline:
<div class="closex" onclick="remove_cell(this); return false"> </div>
Comments
Post a Comment