I am working on creating an tiff viewer with a 3rd part plugin. There example to resize the images had radio buttoms that call javascript functions.
I am trying to change this
to something more like this.
I dont think the onchange can be in the option tag, and must be in the select tag. Any help would be great.
I am trying to change this
Code:
<input name="swnormal" type="radio" onClick="javascript:OnSWNormal()">Show normal<br>
<input type="radio" name="swdpi" onClick="javascript:OnSWdpi()">Scale to DPI<br>
<input type="radio" name="swfitwidth" onClick="javascript:OnSWfitwidth()">Fit to width<br>
<input type="radio" name="swfitheight" onClick="javascript:OnSWfitheight()">Fit to height<br>
<input type="radio" name="swfitwindow" onClick="javascript:OnSWfitwindow()">Fit to height
to something more like this.
Code:
<select>
<option value="swnormal" onChange="javascript:OnSWNormal()">Show normal</option>
<option value="swdpi" onChange="javascript:OnSWdpi()">Scale to DPI</option>
<option value="swfitwidth" onChange="javascript:OnSWfitwidth()">Fit to width</option>
<option value="swfitheight" onChange="javascript:OnSWfitheight()">Fit to height</option>
<option value="swfitwindow" onChange="javascript:OnSWfitwindow()">Fit to height</option>
</select>