Open GoogleCodeExporter opened 8 years ago
This proposal isn't quite complete:
It's sufficient to replace
Line ~162
input.focus(function () {
if ($(this).hasClass("search_init")) {
$(this).removeClass("search_init");
this.value = "";
}
});
input.blur(function () {
if (this.value == "") {
$(this).addClass("search_init");
this.value = asInitVals[index];
}
});
with
if (Modernizr.input.placeholder) {
input.attr("value",""); //delete value attribute to show placeholder
input.attr("placeholder", asInitVals[index]);
} else {
input.focus(function () {
if ($(this).hasClass("search_init")) {
$(this).removeClass("search_init");
this.value = "";
}
});
input.blur(function () {
if (this.value == "") {
$(this).addClass("search_init");
this.value = asInitVals[index];
}
});
}
Original comment by laubsau...@gmail.com
on 8 May 2013 at 6:15
Original issue reported on code.google.com by
jerome.d...@gmail.com
on 10 Oct 2012 at 11:01Attachments: