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