Enable Radio button selected when click whole row

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
simonmlewis
DevNet Master
Posts: 4435
Joined: Wed Oct 08, 2008 3:39 pm
Location: United Kingdom
Contact:

Enable Radio button selected when click whole row

Post by simonmlewis »

I don't know if this can be done via PHP or if it has to be javascript. Apologies if in wrong area of web site.

I need to enable an image button and the text (the whole row really) that when clicked, makes the radio button in the same row 'SELECT'.

Anyone know how to do this?

I've seen it happen in PHPmyAdmin a few times.
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
User avatar
MindOverBody
Forum Commoner
Posts: 96
Joined: Fri Aug 06, 2010 9:01 pm
Location: Osijek, Croatia

Re: Enable Radio button selected when click whole row

Post by MindOverBody »

This is client-side problem, so this is probably wrong area. ;)
Use javascript onClick trigger on <tr> to achieve that. get jQuery javascript API, check online documentation, and soon it will all be bright. ;)
simonmlewis
DevNet Master
Posts: 4435
Joined: Wed Oct 08, 2008 3:39 pm
Location: United Kingdom
Contact:

Re: Enable Radio button selected when click whole row

Post by simonmlewis »

Thanks.
I've no idea how to write Javascript.
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
Post Reply