Bug Tracker

Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#14353 closed feature (plugin)

IE 7 and IE8 do not support the placeholder.

Reported by: [email protected] Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.10.2
Keywords: Cc:
Blocked by: Blocking:


Some browsers do not have support in some placeholder inputs. This function allows you to add functionality. Add this function to jquery:


placeholder: function(strText){ $(this).focus(function(e){


}); $(this).blur(function(e){

if($.trim($(this).val()) == ){



}); if($.trim($(this).val()) == ){

$(this).val(strText); }



Change History (2)

comment:1 Changed 9 years ago by ajpiano

Resolution: plugin
Status: newclosed

Hi and thanks for your interest in contributing to the jQuery project. However, this proposal is outside of the scope of jQuery core and is much better suited for a plugin. There are a variety of HTML5 input attributes that are not supported in oldIE; polyfills for these behaviours, as well as the general category of reusable UI controls, are not the types of features that will be considered for inclusion in jQuery core.

comment:2 Changed 9 years ago by axl.jq

There are already plugins for that task, as it's not that simple, so IMO it's not something to add to jQuery core.

Note: See TracTickets for help on using tickets.