Click here to Skip to main content
15,887,676 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Every One,

I am showing records in grid view in asp.net application.
In a column i am showing two radio button 'Approved' and 'disapproved'.

My requirement is that i want to select radio buttons using press key 'a' and 'd' from keyboard. i do not want to use mouse for selection of radio buttons. Please give me any idea how can i solve this. and tell me that is this possible or not?

Please help me.
Posted

1 solution

To select with a keyboard, click "alt+a" or "alt+b"*

<form name="myForm" method="post"> <input type="radio" accesskey="a" value="a" name="myRadio" /> Value A <input type="radio" accesskey="b" value="b" name="myRadio" /> Value B <input type="submit" name="submit" value="submit" /> </form>
 
Share this answer
 
Comments
coolnavjot31 21-Jun-12 9:16am    
thanks for reply,

but do you know any sample in gridview it used.
please tell me

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900