Click here to Skip to main content
15,949,686 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Good evening to all in my project i use gridview that grid having one textbox when i edit the row the textbox enable and disabled based on the selected radiobuttonlist value.that radiobutton placed inside the grid. please help me



thanks in advance
by

Meganathan M
Posted

With JQuery it can be done like this.
JavaScript
$("radio button").change(function()
{
   $("textbox").attr("diabled", "disabled");
});


Or this to apply to all radio buttons

JavaScript
$("radio buttons")each(function()
  {
    $(this).change(function()
    {
      $("textbox").attr("diabled", "disabled");
    });
});


Obviously you need to supply the proper selectors for the elements
 
Share this answer
 

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