PDA

View Full Version : clickable link within javascript form



jianxin9
07-05-2007, 01:31 PM
Hi everyone,
I am working with a FAQ javascript form--basically you click on an option on the left side of a table, answers will display on the right. I cannot figure out how to create clickable links within this form in the <option value=""></option> area. I can insert a URL, but the patron will have to paste it the browser. Any ideas. Thanks!


<form name=faqform>
<table width="800" height="0" cellpadding="0" align="left">
<tr>
<TD width=403 height="0" >
<tr bgcolor="#cccccc"><td>
<p>&nbsp;&nbsp;&nbsp;&nbsp;Select a Topic for More Information:</p>
<ul>
<select size=15 name=question onchange="javascript:showFAQ(this.form);">


<option value="Please select one of the topics for additional information.">Access and Connection Issues</option>


<option value="info">&nbsp;&nbsp;&nbsp;-->&nbsp;&nbsp;Information for Visitors</option>
<option value="more info">&nbsp;&nbsp;&nbsp;-->&nbsp;&nbsp;Library Services for Persons with Disabilities</option>
<option value="To use most electronic resources off-campus, you will need to login with your Pioneer Portal ID and Password.
Please go here to create a Pioneer Portal account.">&nbsp;&nbsp;&nbsp;-->&nbsp;&nbsp;What is a portal account and how do I get one? </option>
<option value="In order to use library services, you must register for an account. You may use your account to renew, borrow, and request materials.">&nbsp;&nbsp;&nbsp;-->&nbsp;&nbsp;What is a library account and how can I get one?</option>
</select>
</ul>
</td>
<td width="389">
<p>
&nbsp;&nbsp;&nbsp;Info Will Display Here:

<ul>
<textarea name="answer" rows=15 cols=55 wrap=virtual></textarea>
</ul></td>
</tr>
</table>
</form>

mwinter
07-05-2007, 05:04 PM
I cannot figure out how to create clickable links within this form in the <option value=""></option> area.

It's impossible: the contents of an option element must either be text, or entity or character references. No markup is permitted.