Jump to content

[SOLVED] Remove http:// from a field using javascript function?


Jason28

Recommended Posts

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 :D

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.