A jQuery plugin that handles dynamically placing an HTML label over its associated input.
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README
index.html
jquery.labelover.js

README

Usage:

<script type="text/javascript">
    $(document).ready(function() {
        $('form input').labelover();
    });
</script>

Add CSS:

<style type="text/css" media="screen">
    .labelover { position: relative; }
        .labelover label {
            position: absolute;
            z-index: 1;
            top: 2px;
            left: 4px;
        }
        .labelover input {
            position: relative;
            margin: 0;
        }
</style>