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 likecheckValue 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
Post a Comment