Hi,
Use the setAttribute method. e.g. document.getElementById("someid"
).setAttribute("sectionselected", false);
https://developer.mozilla.org/en-US/docs/Web/API/Element/setAttribute
Regards,
Akos
2015-11-28 12:55 GMT+01:00 'Ben Stover' via greasemonkey-users <
[email protected]>:
> Assume I have the following HTML code of the original web page:
>
> ....
> <h3 id="someid" ...... sectionselected="true" ....>....</h3>
> .....
>
> How do I switch the value from "true" to "false"?
>
> Ben
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "greasemonkey-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/greasemonkey-users.
> For more options, visit https://groups.google.com/d/optout.
>
--
You received this message because you are subscribed to the Google Groups
"greasemonkey-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/greasemonkey-users.
For more options, visit https://groups.google.com/d/optout.