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

javascript - jquery or ashx not working -

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

python 3.x - Mapping specific letters onto a list of words -