...

View Full Version : can this be done ???



babycam
12-15-2004, 03:29 AM
hi,
i have made a calculator with various input fields. What i would like to happen is that when a user clicks on a field an explanatory note appears on the right hand side (i.e. the "Notes" section) specific to the field the user has selected.

www.finser.com.au/calcs/retirement_a.html

N.B. There aren't any input fields in the above link yet

Cheers

glenngv
12-15-2004, 06:19 AM
<input type="text" name="txt1" title="This is the description for txt1" onfocus="document.getElementById('notes').innerHTML=this.title" />
<input type="text" name="txt2" title="This is the description for txt2" onfocus="document.getElementById('notes').innerHTML=this.title" />
<input type="text" name="txt3" title="This is the description for txt3" onfocus="document.getElementById('notes').innerHTML=this.title" />
...
<div id="notes"></div>

I put the explanatory notes in the title attribute so that it shows as a tooltip when the user mouses over the field.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum