20

Placeholder, huh?
Who needs the CSS property?

Comments
  • 8
    txtsearch.addEventListener (‘click’, function() {
    txtsearch.value = “”;
    }

    In microsoft we don’t use css, we use js

    Set the height? Js
    Hide element? Js
    a tag href? Js

    I have seen enough spaghetti today
  • 6
    onclick="this.value=this.value?this.value:'default text';"
    was at least my attempt before meeting placeholder. might be not brilliant but at least usable.
  • 4
    html5? Anyone?
  • 2
    <input type="text" placeholder="DevRant"></input>
    Why not just use that like a sane human being?
  • 2
    of course! some just wanted to point out that a useful behaviour could be accomplished even before the golden age of html5.
  • 5
    @PrivateGER because I legit working on a website using microsoft products that used <span onclick=“window.location=‘...’”></span> I swear this isn’t funny
Your Job Suck?
Get a Better Job
Add Comment