Jump to content

HAVE A Look please


andre3

Recommended Posts

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
Share on other sites

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
Share on other sites

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.