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

Popular posts from this blog

timeout - Handshake_timeout on RabbitMQ using python and pika from remote vm -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

c# - Search and Add Comment with OpenXML for Word -