2 Replies - 515 Views - Last Post: 13 August 2012 - 12:57 AM

#1 g37752  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 195
  • Joined: 24-July 12

hide checkbox

Posted 12 August 2012 - 04:06 PM

This only hides the checkbox, not the checkbox label "2=1"? How do I hide both the checkbox and its associated label?

<input name="ckbox[]" type="checkbox" id="2_1" style="display:none;">2=1</input>

Is This A Good Question/Topic? 0
  • +

Replies To: hide checkbox

#2 JackOfAllTrades  Icon User is offline

  • Saucy!
  • member icon

Reputation: 6058
  • View blog
  • Posts: 23,495
  • Joined: 23-August 08

Re: hide checkbox

Posted 12 August 2012 - 05:53 PM

Wrap it in a <span> and hide that.
Was This Post Helpful? 2
  • +
  • -

#3 Dormilich  Icon User is offline

  • 痛覚残留
  • member icon

Reputation: 3520
  • View blog
  • Posts: 10,159
  • Joined: 08-June 10

Re: hide checkbox

Posted 13 August 2012 - 12:57 AM

btw. <input> elements are always empty (they do not have a closing tag)
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1