My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
Basic_Instructions  
Basic instructions on getting dynoBox working on your page.
Featured
Updated Jun 13, 2009 by kneedeep...@gmail.com

Basic Instructions

Simplest Method

The simplest steps are:

1. Add the following to your <head>

<script type="text/javascript" src="http://dynobox.googlecode.com/files/jquery.dynobox.0.8.js"></script>

2. Also add the following to your <head> or in an external .js file.

<script type="text/javascript">
	$(function(){
		$('input').dynoBox();
	});
</script>

This will make dynoBox function for each input field.

Adding Parameters

Adding parameters is quite easy, and just like any other jQuery plugin. This will, instead of erasing the text in the input, will select it all and changes the default text to 'Type to Search'

<script type="text/javascript">
	$(function(){
		$('input').dynoBox({
			value:'Type to Search',
			defaultTextFocus:'select'
		});
	});
</script>
Comment by albcoastcountry, Sep 25, 2009

Ah hah


Sign in to add a comment
Powered by Google Project Hosting