This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Event handling

 
paramu vinayagam
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi , now i am had ten text box. in first text box used onmouseover and onmouseout, i want to add this event to all remaining text box how? without call every time into text box...

[Edit: code tags removed. Please be sure to use code tags for code, not text.]
[ December 10, 2008: Message edited by: Bear Bibeault ]
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well you are going to have to add the events to the textbox.

You can either do it by adding it to the HTML markup. <--BAD
You can add it with JavaScript



Eric
 
paramu vinayagam
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
paramu vinayagam
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sir,

could you please tell me how to post my questions... i saw the format but could not understand that so give examples...



Regards,


----------
paramu...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic