[jQuery] Re: Stripping domain from email

2007-09-26 Thread Alex
OHO! I bludgeoned it into submission - and yes, my solution sucks, I'm sure. jQuery("#user_webmail").blur( function(){ var un = jQuery("#user_webmail").val().split("@"); jQuery("#user_webmail,#user_pay,#user_home").val(un[0]); } ); Any cleaner solutions are highly appreciated. Now,

[jQuery] Re: Stripping domain from email

2007-09-26 Thread Alex
We do that on another section of the site. Guess what? People are still seemingly INCAPABLE of following that sort of guide. Even when we specifically prompt for "Your Domain Name (only domain.com, not www.domain.com)" we STILL get bloody email addresses in the input. On Sep 26, 2:17 pm, Muesch

[jQuery] Re: Stripping domain from email

2007-09-26 Thread Muescha
why you dont give a hint what the users have to input in this field: [ ] means input field write: [EMAIL PROTECTED] and dont allow a dot as input (if the dot is not used in names) On Sep 26, 10:03 pm, Alex <[EMAIL PROTECTED]> wrote: > I was under the impression that the masked input plugin s

[jQuery] Re: Stripping domain from email

2007-09-26 Thread Alex
I was under the impression that the masked input plugin simply provides a template for entry, but every character in that template is still submitted, so I'd still have to strip the @domain part off before submission. The other problem with the masked input is that it expects a fixed width input,

[jQuery] Re: Stripping domain from email

2007-09-26 Thread Josh Nathanson
You could the masked input plugin, so that they couldn't enter periods or @'s in the first place. It's really nice. http://jquery.com/plugins/project/maskedinput -- Josh - Original Message - From: "Alex" <[EMAIL PROTECTED]> To: "jQuery (English)" Sent: Wednesday, September 26, 2