Giter Site home page Giter Site logo

redboss1 / jquery-smart-placeholder Goto Github PK

View Code? Open in Web Editor NEW

This project forked from josephilipraja/jquery-smart-placeholder

0.0 1.0 0.0 444 KB

A jQuery Plugin which handles HTML Input placeholder attributes smartly. Shows placeholder even when user is typing.

License: MIT License

HTML 43.52% JavaScript 56.48%

jquery-smart-placeholder's Introduction

#Welcome to SmartPlaceholder.js SmartPlaceholder is a free & open-source jQuery plugin which converts your normal html input tags into advanced user-friendly elements. This plugin works with zero modification to the markup, we know its already messed up! :P

We are in the era of placeholder attributes, we don't use labels to represent each input tag elements like we used to. But there are some limitations with the placeholder, major one is that it hides itself when the user starts typing. That's where SmartPlaceholder.js can take act in.



#Demo

jQuery Smart HTML Input Placeholder Plugin Demo:

http://josephilipraja.github.io/jquery-smart-placeholder/demo



#Usage

HTML:

<input type="text" placeholder="Username">
<input type="password" placeholder="Password">

JavaScript:

<script src="jquery.js"></script>
<script src="jquery.smartPlaceholder.min.js"></script>
<script type="text/javascript">
    $(function() {
        $("input").smartPlaceholder();
    });
</script>


#Configurations / Options Default Settings & Options

$("input").smartPlaceholder({
    text: 'Enter Value',      // default text
    backgroundColor: '#fff',  // hex, rgb, rgba
    color: '#888',            // hex, rgb, rgba
    size: 12,                 // in pixels
    speed: 0.3,               // in secs
    radius: 3,                // in pixels
    indent: 5,                // in pixels
    position: 'bottom',       // 'top' or 'bottom'
    mode: 'extend'            // 'inline' or 'extend'
});


#Bugs / Issues? Found a bug in SmartPlaceholder.js? Nice! Do notify me via Github Issues or drop a mail at [email protected]. I really appreciate it.



#Having Trouble? Having trouble with SmartPlaceholder.js? Check out the demo usage at jQuery Smart Placeholder Plugin Demo or contact [email protected] and we’ll help you sort it out.



#Copyright and license

Code and documentation copyright 2014 Jose Philip Raja, Founder & Creative Director of CreaveLabs IT Solutions. Code released under the MIT license.

jquery-smart-placeholder's People

Contributors

josephilipraja avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.