andre3 Posted March 18, 2009 Share Posted March 18, 2009 Hi guys i am not too familiar with java script, but i am doing a project and i got this code from online its a drop down select form, so am wondering if its possible for me to make it 4 links instead of drop down, and when u click the link it passed the same value that the drop down menu would pass: thannks <select name="customers" onchange="showCustomer(this.value)"> <option value="andre3">Alfreds Futterkiste</option> <option value="NORTS ">North/South</option> <option value="WOLZA">Wolski Zajazd</option> </select> Quote Link to comment Share on other sites More sharing options...
darkfreaks Posted March 18, 2009 Share Posted March 18, 2009 missed a semi colon <select name="customers" onchange="showCustomer(this.value);"> <option value="andre3">Alfreds Futterkiste</option> <option value="NORTS ">North/South</option> <option value="WOLZA">Wolski Zajazd</option> </select> Quote Link to comment Share on other sites More sharing options...
andre3 Posted March 18, 2009 Author Share Posted March 18, 2009 i got it man lol have a look: <a href='#' id='andre3' onclick='showCustomer(this.id)'>text</a> <a href='#' id='NORTS' onclick='showCustomer(this.id)'>text</a> <a href='#' id='WOLZA' onclick='showCustomer(this.id)'>text</a> Quote Link to comment Share on other sites More sharing options...
darkfreaks Posted March 18, 2009 Share Posted March 18, 2009 please mark as topic solved 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.