p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Javascript (http://p2p.wrox.com/forumdisplay.php?f=85)
-   -   Dynamically set Button atrubute (http://p2p.wrox.com/showthread.php?t=43661)

dijomonmd June 8th, 2006 02:17 AM

Dynamically set Button atrubute
 
Here the code

 btn[len][i++]=new Button();
 btn[len][i-1].set("value","url","className");

How can i set Tooltip for this button. Is any solution?


joefawcett June 8th, 2006 02:27 AM

I've no idea as you're using some sort of helper library.
Code:

... = new Button();
is not standard DOM so you'll have to look at the documentation for the library you're using.
In standard DOM you'd set the button's title property.
Code:

document.getElementById("myButton").title = "Click here to submit";
--

Joe (Microsoft MVP - XML)


All times are GMT -4. The time now is 09:29 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.