//select all divs with id starting with 'jpassword' $("div[id^='jpassword']").style.display = 'none';