<code> $(document).ready(function(){ $("#email").change(function () { var email_addy = $('#email').val(); var name_bit = email_addy.(split("@")[0]); $('#username').val() = name_bit; }).change(); }); </code>
I'm getting an XML error on the split function; can someone help me take this: dave.t...@test.com and split that into 2 pieces: dave.test & test.com -- View this message in context: http://www.nabble.com/split-email-address-into-2-fields--syntax-error...-tp21444282s27240p21444282.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.