vishalmarya
Programmer
- Aug 19, 2001
- 28
i need to set the value to a width element of the style attribute of button control.
Like :
Code:
<input type="submit" name="btn1" value="Button" id="btn1" style="width:100px;" />
But how can i provide the value as a variable instead of hardcoded one. i don't want to achieve this through separate javascript statement.