How can I delete parts of a string in an html form?

Atlante A

New member
Hello all! I have a quick question. I have a single text field form to search for domains. I want the user to only enter the domain name without entering the tld for example if a user wants to search for mydomainname.com the javascript will delete the period and everything after that so that the only thing submitted is mydomainname -- Is this possible?

Thanks in advance!
 
Back
Top