Is any alternative way to make radio button and checkbox exclusive?
Except the below way:
$(':checkbox').live('change',function()
{
$(':radio').prop('checked',!$(this).prop('checked'));
});
$(':radio').live('change',function()
{
$(':checkbox').prop('checked',!$(this).prop('checked'));
});
Here is a jsFiddle to work on.
How about in one line ?
HTML
JS
Live demo on JSFiddle here