GrassHopperPebbles.com Demos

JQuery Plugins

imPagePopulate 1.0 - Addtional Elements Option

The following example shows how to use the imPagePopulate plugin using the 'add_elements' option. Additional Elements are used when there are multiple forms on a single page. The data returned must be a Json object. In this case, the data returned is as follows:

'[{"first_name": "Jack", "last_name": "O\'neal", "address1": "227 Cheyenne Mountain", "address2": "Suite SG1", "city": "Colorado Springs", "states": "4", "zip_code": "80914", "home_phone": "719-561-2222", "email": "soneal@stargatecommand.gov", "hobby1": "Fishing", "hobby2": "Exploring New Worlds", "love_first": "Samantha", "love_last": "Carter", music_pref: [{ "music_cat_id":"1", "music_desc":"80s Music" }, { "music_cat_id":"10", "music_desc":"Rock" }, {"music_cat_id":"14", "music_desc":"R&B" }, '{ "music_cat_id":"15", "music_desc":"Dance/Electronic" }]}]'

View the source code for this page to view how to use the plugin. For documentation about the imValidateForm plugin, view the blog post.

First Name:
Last Name:
Address1:
Address2:
City:
State:
Zip/Postal Code:
Home Phone:
Email Address:
Hobbies
True Love
First Name:
Last Name:

Music:


Tags

, , , , ,