Francisco Posted December 4, 2008 Share Posted December 4, 2008 Hi guys can someone tell me how I define which TLD is default on the dropdown box when it loads? Heres the actual code that I have right now, but it defaults to .co.uk (I want to default to .com) <form action="https://site.com/myaccount/cart.php?a=add&domain=register" method="post"> Domain: <input type="text" name="sld" size="20"> <select name="tld"> <option>.com</option> <option>.net</option> <option>.org</option> <option>.us</option> <option>.biz</option> <option>.info</option> <option>.ws</option> <option>.co.uk</option> <option>.org.uk</option> <option>.tv</option> <option>.ca</option> <option>.mobi</option> </select> <input type="submit" value="Go"> </form> 0 Quote Link to comment Share on other sites More sharing options...
benjamininmaine Posted December 12, 2008 Share Posted December 12, 2008 Francisco- Did you ever get an answer to this? I have the same issue with .ca being default. 0 Quote Link to comment Share on other sites More sharing options...
GORF Posted December 12, 2008 Share Posted December 12, 2008 Use the Selected part of the Option... see the bold below... Hi guys can someone tell me how I define which TLD is default on the dropdown box when it loads? Heres the actual code that I have right now, but it defaults to .co.uk (I want to default to .com) <form action="https://site.com/myaccount/cart.php?a=add&domain=register" method="post"> Domain: <input type="text" name="sld" size="20"> <select name="tld"> <option selected>.com</option> <option>.net</option> <option>.org</option> <option>.us</option> <option>.biz</option> <option>.info</option> <option>.ws</option> <option>.co.uk</option> <option>.org.uk</option> <option>.tv</option> <option>.ca</option> <option>.mobi</option> </select> <input type="submit" value="Go"> </form> 0 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.