m10l / floatlabel.js Goto Github PK
View Code? Open in Web Editor NEWA jQuery plugin for floating form labels
Home Page: http://labs.mikemitchell.co.uk/FloatLabelJS/
A jQuery plugin for floating form labels
Home Page: http://labs.mikemitchell.co.uk/FloatLabelJS/
Currently the label is displayed as the typical password **********, is there a way of changing this?
When i refresh the page, it doesn't display text if the input type text already has value in it
It would be amazing if it was possible to install FloatLabel.js via bower for easy dependency and version management.
This plugin is great! I'm getting a bug in Firefox (25.0.1) where after visiting the page with the form that is using FloatLabel.js, even if the form isn't touched or filled out, the next time the page is visited the <label>
get's displayed twice - once as the floated label, and once as a value of the form field. Here is a screencast showing the issue: http://d.pr/v/1Wqe
Has anyone else experienced this isssue? Firefox bug?
input.on( 'paste', function(){
element.addClass( settings.populatedClass );
});
HI!
I find your useful plugin and I adapted it to my situation.
I found this bug: when you add text in the field not typing (for example selecting old typing with autocomplete), it is not adding the class 'populated'. I used Chrome.
I fix it whit the following code:
input.on('change', function(){
if(input.val()!= ''){
element.addClass( settings.populatedClass );
}
})
Hoping you will like it :)
if input empty
It is important to wiredep package, which get this parameter to auto injecting in index.html
just one parameter:
"main": "./jquery.FloatLabel.js",
And you solve big problem.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.