hideNote = function functionName(hideNum) { var obj = JSON.parse(localStorage.getItem(localStorage.key(hideNum))); console.log(obj.id); //правильный id var a = obj.id; var ind = $(this).attr('a'); $('div [id='+ind+']' ).hide();/* var divToHide = document.getElementsById(obj.id); divToHide.style.visibility="hidden"; //element.style.visibility = 'hidden';*/ }, You need to hide a div with a specific id, obtained from localStorage .
What am I doing wrong?
ind- is the attributea, what's theid? - vp_arth$('#'+obj.id).hide()? - vp_arth