View Single Post
Old 11-25-2012, 08:12 PM   PM User | #1
jquerynewbie
New to the CF scene

 
Join Date: Nov 2012
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
jquerynewbie is an unknown quantity at this point
Parsing Pasted Text with Jquery (no server side processing)

I need a solution to do the following

1.User pastes some text into a textarea
2.User clicks a button "Autofill"
3.On press of the button, the various lines of the pasted text are put into the appropriatly named form fields.

Here is an example of how the pasted text is formatted:

Code:
First Name Jimberly  
Last Name Hagg  
Postcode Test
I've started work on this project here:
http://jsfiddle.net/hc8kL/1/

Any help/guidance (including coding examples) would be appreciated!

(By the way my jquery to disable the "Continue" button is buggy - it enables the button if you enter some text into one of the forms, but then if you delete it, this isn't noticed by the function and it still keeps the "Continue" button enabled)
jquerynewbie is offline   Reply With Quote