Can I get a HTML attribute from a element using context vars or functions? (# or $)

liljoint May 30, 2012

Can I get a HTML attribute from a element using context vars or functions? (# or $)

2 answers

0 votes
Sandro Herrmann [Communardo]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 31, 2012

Can you please illustrate your problem with a simple example :)

0 votes
Matthew J. Horn
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 30, 2012

If youre working in the Custom HTML panel, then you can use jQuery to access any part of the DOM, including attributes of HTML tags. Here's an example:

AJS.$('input#notifyWatchers').attr('checked', false);
This example finds the <input id="notifyWatchers"> tag and adds or changes the value of the "checked" attribute to false.
hth,
matt
liljoint May 30, 2012

jaja thanks, but I know Jquery, when I say $ or # I talk about confluence object or functions... thanks for the help, but This doesn't solved my problem...

thnx

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events