javascript - How To set the value of radio button to empty when it is deslected -


please me come out of this

i have part:

$(':input[type=radio]',taskclass).not(':button, :submit, :reset, :hidden').val('') .removeattr('checked'); 

try if radio button deselected, clear value

if( $(':input[type=radio]').is(':checked') == false ) {     $(this).attr('checked',false).val(''); } 

Comments

Popular posts from this blog

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -

Why can rails not find a route created by a helper? -

javascript - jquery or ashx not working -