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 ответов
+ 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