Author Topic: Select an item without checking it?  (Read 3736 times)

Mungyun

  • Newbie
  • *
  • Posts: 2
    • View Profile
Select an item without checking it?
« on: September 22, 2015, 02:57:40 am »
I would like to set this pqselect up so that a user can select(highlight) an item without it being checked. I want the user to check the box separately. Is something like this possible to do without significant changes in the code?

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6309
    • View Profile
Re: Select an item without checking it?
« Reply #1 on: September 22, 2015, 07:01:33 pm »
Either you can turn off the checkbox or the entire row is selected including the checkbox.

If you want to make changes in the code, you may have to decouple the "for" attribute of the row labels from "id" of the checkboxes.

Mungyun

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Select an item without checking it?
« Reply #2 on: September 23, 2015, 02:29:27 am »
Scratch this. I took what you said too literally and realized that since the checkbox is inside of the label tags, it doesnt need the 'for' attribute. Sorry!

Thanks for the reply, although im a little confused on where to find this for attribute. I dug around the code but i dont see a 'for' attribute applied to any of the labels. The way it acts is definitely like there is a for attr there but i cant seem to find it anywhere in the pqselect code. What am I missing?
« Last Edit: September 23, 2015, 02:37:41 am by Mungyun »