Skip to content

Emulation placeholder in older browsers that do not support html5

Notifications You must be signed in to change notification settings

kerny-/placeholder-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

placeholder-js

Emulation placeholder in older browsers that do not support html5.

placeholder.js uses paradigm "Unobtrusive JavaScript". The example in the file example.html.

stylization

For styling, use class -js-placeholder

    .-js-placeholder{
        color: red;
        font-style: italic;
    }

to dynamically create

If the input dynamic creation, then use the function placeholderIni(input);

    var newInput = document.createElement('input');

    newInput.setAttribute('placeholder', 'example dynamically input');            
    // initialization placeholder for the new input
    placeholderIni(newInput);

More detailed information in the file example.html

About

Emulation placeholder in older browsers that do not support html5

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages