[jQuery] Re: split email address into 2 fields; syntax error...

2009-01-13 Thread typenerd
sure enough that did the trick, thanks for the help. I see where I went wrong now. Also the text still updates even without the @ sign, so I lucked out there! -- View this message in context: http://www.nabble.com/split-email-address-into-2-fields--syntax-error...-tp21444282s27240p21444626.htm

[jQuery] Re: split email address into 2 fields; syntax error...

2009-01-13 Thread MorningZ
this not valid syntax var name_bit = email_addy.(split("@")[0]); try var name_bit = email_addy.split("@")[0]; to note, either piece of code would produce undesirable results if the user doesn't enter a "@" in the field.. you should check for that as well On Jan 13, 3:52 pm, typenerd wrote: