how would i style a check box to function like a button

  • (2 Pages)
  • +
  • 1
  • 2

16 Replies - 367 Views - Last Post: 07 May 2020 - 12:14 AM

#16 modi123_1   User is online

  • Suitor #2
  • member icon



Reputation: 15741
  • View blog
  • Posts: 63,062
  • Joined: 12-June 08

Re: how would i style a check box to function like a button

Posted 06 May 2020 - 12:34 PM

That's nice, but don't forget to sun soak your bee-hole.

https://nypost.com/2...ncers-swear-by/
Was This Post Helpful? 0
  • +
  • -

#17 ishan.shah   User is offline

  • New D.I.C Head

Reputation: 3
  • View blog
  • Posts: 43
  • Joined: 28-March 19

Re: how would i style a check box to function like a button

Posted 07 May 2020 - 12:14 AM

You can use Js for that ,
For example:
<input type="checkbox" id="accept"> Accept
const cb = document.getElementById('accept');
console.log(cb.checked)


And if want to do some thing when its get checked you can use if in js as well
Was This Post Helpful? 0
  • +
  • -

  • (2 Pages)
  • +
  • 1
  • 2