Category : blur

I have this code: function setInfo(id, idelem2) { let myElement = document.getElementById(idelem2).outerHTML; let test = document.getElementById(idelem2); let tag = test.tagName; test.outerHTML = "<input id=’"+idelem2+"’ type=’text’>"; let myInput = document.getElementById(idelem2); document.getElementById(idelem2).focus(); myInput.addEventListener("blur", function(event) { myInput.outerHTML = myElement; return; }) myInput.addEventListener(‘keyup’, function(event) { if(event.keyCode === 13) { let newvalue = myInput.value; $(document).ready(function() { let post = {}; ..

Read more

I’m trying to blur the background when I click on an image and it popup. I already have it where it blurs a section of the page. However, you can see anything that is outside of that section not blur-out. CSS .content2#blur.active{ filter: blur(20px); pointer-events: none; user-select: none;} #popup{ /*NEW*/ position: fixed; top: 40%; left: ..

Read more

function fix(event){ console.log(“hello”); } document.addEventListener(“blur”,fix,false); <table> <tr> <td>class</td> <td><input type=”text” class=”data”></td> </tr> <tr> <td>name</td> <td><input type=”text” class=”data”></td> </tr> </table> So simple the js function. I want console.log execute when blur event occur,no matter the mouse’s focus go out off which input,hello show on console. What’s wrong with my fix function? Source: Javascript Events..

Read more