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> Link to comment https://forums.phpfreaks.com/topic/149913-have-a-look-please/ 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> Link to comment https://forums.phpfreaks.com/topic/149913-have-a-look-please/#findComment-787319 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> Link to comment https://forums.phpfreaks.com/topic/149913-have-a-look-please/#findComment-787321 Share on other sites More sharing options...
darkfreaks Posted March 18, 2009 Share Posted March 18, 2009 please mark as topic solved Link to comment https://forums.phpfreaks.com/topic/149913-have-a-look-please/#findComment-787353 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.