Expand my Community achievements bar.

SOLVED

Last name populate automatically

Avatar

Level 5

There are two text fields named Full name (first name + last name) and last name.

When user will type in full name filed, last name typed in full name field, will be populated into last name filed.

What is the code for it?

1 Accepted Solution

Avatar

Correct answer by
Level 4

no problem,

     try with this link http://www.megaupload.com/?d=V5TDR54Q

let me if the file access is still a problem

thanks,

Rajesh

View solution in original post

10 Replies

Avatar

Level 4

Hi,

    Use the split method with space as delimiter. Please find the sample attached, and i hope this code helps you.

https://acrobat.com/#d=bnhOxUnIijHud2QKmTgFVQ

thanks,

Rajesh

Avatar

Level 5

Thanks for reply.

I apologize that I have not get the file. Would you resend the file?

Avatar

Level 4

Hi,

     I see the PDF in the link that i have provided. First of all you have to login to acrobat and some time you don't see the PDF, but you can access that PDF through a download botton on left top corner of the page.

Avatar

Level 5

After log in it shows no file found.

Would you resend?

Thanks

Avatar

Correct answer by
Level 4

no problem,

     try with this link http://www.megaupload.com/?d=V5TDR54Q

let me if the file access is still a problem

thanks,

Rajesh

Avatar

Level 5

If I want 1st name split, what is the code for it?

Avatar

Level 4

yes, you can use more string handling object methods such as substring(), indexOf(), please find the reference below. It will help you to play around with Strings.

http://www.javascriptkit.com/javatutors/string4.shtml

Avatar

Level 5

I am grateful to you.

Thanks again.