javascript - trigger jquery floatlabels plugin on input load -


I'm trying to use the jQuery plugin as to create inline labels for input fields.

Works great for fields in which they do not have text, but I need that label, even if they have pre-default text. I checked the plugin code and found this line

  thisElement.on ('keyup blur change', function (e) {self.checkValue (e);});  

Which means that it will trigger only on the keyword, the event will blur and change. I need to trigger even when the first input of the input is triggered I know that I

To do something like

checkValue is for everyfield and there already it is self.showLabel

But I'm not sure How that ??

OK, if you can update the code of that plugin, then you can try Something like this:

  thisElement.on ('load funnel change', function (e) {self.checkValue (e);});  

Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -