view raw
MR.Don't know MR.Don't know - 1 year ago 65
Javascript Question

Focus on click doesnt work

i want to hide placeholder on click, but seems something blocking focus, i try to add css

But nothing, this is my whole code, please try to se if there something in js, that prevent focus state.


You tagged this question with JQuery, but you didn't include in in your fiddle, so I'm not sure if you're using it. If you are, add these lines to your js and it will remove the placeholder on focus:


Make sure you wrap it in a document.ready function ( $(function()... in JQuery). Here's a fiddle: