I used the following code to create a button for my plug-in:
retVal.Append(Forms.SubmitButton(api.AddPluginPrefix("btnRefresh"), "Refresh"));
It generated this HTML:
<input type="submit" value="Refresh"
class="dlgButton " chotkey="o"
name="P20_btnRefresh"/>
It would be nice if you could also set the ID attribute of the element to make it easier to reference in client-side scripts. Even if it was the same as the name attribute.
I've discovered that I can select the element in JQUERY using this syntax:
$([name$='P20_btnRefresh'])
But it doesn't seem as clean as it would with an ID.
$('#P20_btnRefresh')