Jason28 Posted December 7, 2008 Share Posted December 7, 2008 Hello, could you please provide me with a working example of how to make it so javascript removes http:// from a form field before submitting it? Thanks Quote Link to comment Share on other sites More sharing options...
Jason28 Posted December 7, 2008 Author Share Posted December 7, 2008 Yay nevermind I figured it out myself from searching and combining different codes I found function removeAst(fieldObj) { fieldObj.value = fieldObj.value.replace("http://",""); } and add: onchange="removeAst(this);" to the form field and it works Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.