Freebie: Uniform jQuery Theme for styling forms

I recently discovered this great jQuery plugin for styling forms. Here's a little freebie from Popolo where we styled our own select element and merged that with the Uniform Aristo theme. Download and try the zip file attached below.
The Uniform jQuery plugin allows you with a few simple lines of code to style all those hard-to-style elements such as select lists and file uploads. In your page header, add jQuery and then the uniform jquery.uniform.js thus:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript" charset="utf-8"</script>
<script src="js/jquery.uniform.min.js" type="text/javascript" charset="utf-8"&</script>If you are running Drupal, jQuery is already included with the system and you add the jQuery.uniform.js in your themes .info-file. After placing the css-file and the sprite.png in the appropriate catalogue you call the uniform-script:
<script type="text/javascript" charset="utf-8">
$(function(){
$("input, textarea, select, button").uniform();
});
</script>Read all about the script at the uniform.js web site.
- 3098 reads
Add new comment