Advanced Input plugin for jQuery web applications.
This plugin has a few dependencies, so it is recommended to use if you are already using those dependencies in your project.
Examples are given below with code snippets.
// HTML
<input class="type-1" placeholder="Your Name">
<input class="type-2">
// JS
$('input.type-1').naoInput()
$('input.type-2').naoInput({ label: 'Your Email' })
// HTML
<input class="type-3" label="Your Favorite">
// JS
$('input.type-3').naoInput({
options: [
'Tea',
'Cola',
'Coffee'
]
})
// JS
$('form').naoInput()
Use label attribute to define the label for an input element.