Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript
|
Javascript General Javascript discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 8th, 2006, 02:17 AM
Registered User
 
Join Date: Jun 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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?

 
Old June 8th, 2006, 02:27 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

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)





Similar Threads
Thread Thread Starter Forum Replies Last Post
how to set the backgound-color dynamically Neha XSLT 7 July 10th, 2008 07:17 AM
php take get variable and dynamically set values crmpicco PHP How-To 1 October 22nd, 2007 07:19 PM
Crystal - Set Y axis values dynamically vasanti Classic ASP Basics 0 February 14th, 2005 06:25 AM
Dynamically set selected attribute fs22 Javascript How-To 5 December 24th, 2004 04:10 PM





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