Widget:Select on click
From Guild Wars 2 Wiki
Jump to navigationJump to search
Description
This widget takes text content wrapped in class="selectonclick" and allows it to be selected with one click.
Usage
<span class="selectonclick">Text</span>
{{#Widget:Select on click}}
Parameters
This widget has no parameters.
Example
- See also: Template:Dry Top event table
<span class="selectonclick" title="Click and copy" style="border:1px solid #aaa; border-radius:5px; background-color:#F9F8F7; cursor:help; padding:2px;">This piece of text can be clicked on anywhere to select all of the text in the element with the class "selectonclick".</span>
{{#Widget:Select on click}}
This piece of text can be clicked on anywhere to select all of the text in the element with the class "selectonclick".
Notes
- As with most widgets operating on HTML elements, this widget must be defined after the HTML it is to operate upon.