Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
devTea240886ytxtsearch.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 -
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. -
<input type="text" placeholder="DevRant"></input>
Why not just use that like a sane human being? -
of course! some just wanted to point out that a useful behaviour could be accomplished even before the golden age of html5.
-
devTea240886y@PrivateGER because I legit working on a website using microsoft products that used <span onclick=“window.location=‘...’”></span> I swear this isn’t funny
Related Rants
Placeholder, huh?
Who needs the CSS property?
rant
css
input
placeholder
fail