0
How do i use the Button "style" and "onclick" together
I had effected my button style, both color, border and background color, but I want it to also be an Onlick submit button, how can I go about that, how can I use two of them togther?
2 Answers
+ 4
I may not fully understand your question, but to create a button that can be styled and have an onClick function, do this:
<button style=āā onClick=āupdate()ā>My button</button>
Add your own styling.
Make sure the quotation marks arenāt slanted or curly.
Iām also a slightly rusty in HTML (I havenāt used it in a few months), so I may not get things 100% right.
0
Ok thanks