You need to sign in to do that
Don't have an account?
geo789
Highlight Row in a pageblocktable when clicking on inputcheckbox
Hi,
I have a pageblocktable with a column for a checkbox along with columns for data. Once the checkbox is clicked the entire row needs to be higlighted.I believe we we need to use Javascript here.Javascript along with an onselect attribute for the checkbox might be the answer.Unfortunately i have no idea in Javasript.Need help here!Thanks in advance
Do you want it to stay highlighted? Or should it swap in and out as the user clicks different checkboxes?
Once the checkbox is unchecked the highligting should be removed.
Thanks
Try this:
Add this after your <apex:page tags :
and this to each pageblocktable tag that you want the highlighting to take effect:
1)I want the code to select the entire row just by checking the checkbox.
2)The code above does not remove the highlighting once the checkbox is unchecked.
Thanks
Changing the body of the script to this:
and then the rowclick highlight tag into each collumn tag indivually may help or atleast get you close. That is pretty much the extent of my knowledge. Sorry mate.
Well it aint working. Anways thanks for spending time for me! :)