jquery - Frame appearing around my close icon when clicked -


i have div "x" image background can click close parent element:

enter image description here

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

Popular posts from this blog

node.js - Bad Request - node js ajax post -

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -