а

For the .setTooltip() function on the Form, where to find the ID for a button?


#1

Hi,

Might be missing something really obvious here, so forgive me if I’m just being daft :wink:

I want to use the .setTooltip function to set the tooltip for a button on a Form ( Doc here ) but I can’t work out where I’m supposed to get the ID for the button the method requires…

Other methods (.enable for example) reference the form element by name, but unfortunately not this one!

Any advice would be much appreciated =)

Cheers,
Chris


#2

you are defining the id (name) for your button when creating that item

   {type: "button", name: "btn", value: "Save Changes"}