Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-15-2004, 02:29 AM   PM User | #1
babycam
New Coder

 
Join Date: Oct 2004
Location: Sydney
Posts: 62
Thanks: 0
Thanked 0 Times in 0 Posts
babycam is an unknown quantity at this point
Lightbulb can this be done ???

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
babycam is offline   Reply With Quote
Old 12-15-2004, 05:19 AM   PM User | #2
glenngv
Supreme Master coder!


 
glenngv's Avatar
 
Join Date: Jun 2002
Location: Los Angeles, CA Original Location: Philippines
Posts: 10,241
Thanks: 0
Thanked 112 Times in 111 Posts
glenngv will become famous soon enough

<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.
__________________
Glenn
_____________________________________________
Play Tower of Hanoi Android app (Ad-FREE!)
Play Tower of Hanoi Android app (FREE!)
Go to Tower of Hanoi Leaderboard
Play Tower of Hanoi Facebook app
glenngv is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:21 AM.


Advertisement
Log in to turn off these ads.