[Mediawiki-l] Javascript toggle

Alain a.v.a at home.nl
Thu Oct 9 11:01:37 UTC 2008


Hi,

I need to do a toggle on display:none/block in an extension with javascript.
For example: <input type="checkbox" 
onclick="document.getElementByName('testrow').style.display = 
this.checked ? 'block' : 'none';" />

Obviously this doesn't work because I can't use javascript in my 
extensions(?).
Does anyone have a solution to this?

Thanks,

Alain





More information about the MediaWiki-l mailing list