Mark radio as checked when the user click in line<tr> of a table

I have a table where all line have a input(type:radio) as an rowid. In this way, I want mark the input as checked when the user click at line from the respective radio and so on in all lines.

Answers


$('tr').on('click' ,function(){
   $(this).find('input[type=radio]').prop('checked':true);
});

When you click any TR find the radio's inside it and check them manually


Need Your Help

.format() and unicode strings

python unicode format

i am trying to format a bunch of strings in python 2.7.6.

horizontial scrollbar disappear when sorting header column, is it a bug?

jqgrid free-jqgrid

Demo is found at link removed and using jqgrid version 4.9.2

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.