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?

20th Oct 2023, 1:04 AM
Israel Ndubuisi
Israel Ndubuisi - avatar
2 Respostas
+ 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.
20th Oct 2023, 3:44 AM
AM23
AM23 - avatar
0
Ok thanks
22nd Oct 2023, 10:44 PM
Israel Ndubuisi
Israel Ndubuisi - avatar