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.
Enable Radio button selected when click whole row
Moderator: General Moderators
-
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
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
All the best from the United Kingdom.
- 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
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.
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
Thanks.
I've no idea how to write Javascript.
I've no idea how to write Javascript.
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
All the best from the United Kingdom.