LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-25-2012, 02:13 PM   #1
suse_nerd
Member
 
Registered: May 2008
Distribution: SuSe
Posts: 50

Rep: Reputation: 15
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)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Hex dump + original text side-by-side? littlebigman Linux - Software 2 06-24-2011 06:46 AM
X11 and TEXT mode dual monitor side by side marius_c Linux - General 0 10-30-2009 10:30 AM
Pasted text from PDF reader is junk buldir Ubuntu 4 08-22-2005 01:37 PM
Yum Errors in parsing, whats wrong here (yum.conf pasted) thejokker Linux - Newbie 1 06-15-2004 02:28 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration