javascript - Convert :unchecked to prop('checked',false) -
i'm using jquery version 1.8.0 , i'm getting error message "uncaught error: syntax error, unrecognized expression: unchecked"
jquery changed unchecked prop('checked',false) .i tried changing code but, not working.
if($('input[name='+family+']:unchecked').length){ }
i replaced
if($('input[name='+family+']).prop('checked',false).length){ }
use :not
selector :checked
:
if($('input[name='+family+']:not(:checked)').length){ //do something.. }
Comments
Post a Comment