Skip to content

not work with checkbox : TypeError: $el[0] is undefined  #8

@tablecell

Description

@tablecell
<!doctype html><html><head><meta charset='utf-8' />

<script src="jquery-2.1.1.js" ></script>
<script src="jquery.binddata.js" ></script>

</head><body>





<form >

<input name="title" />
<input type="checkbox"  name="lang[]"  value="es5"> es5
<input type="checkbox"  name="lang[]"  value="es6"> es6
</form>

<script>
$(document).ready(function(){
var data = {title: 'value1',lang:['es5,es6']};

//var data = {title: 'value1',lang:'es5'};
$('form').binddata(data);

});

</script>


</body></html>

TypeError: $el[0] is undefined

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions