I have an error in my use of AJAX:
TypeError: \'stepUp\' called on an object that does not implement interface HTMLInputElement....plete\",[C,p]),--x.
You will get all the checkbox values like following.
var newvalue='';
$('input[name=wordid\\[\\]]').each(function(index, element) {
newvalue=newvalue+this.value+',';
});
Then pass the value of variable 'newvalue' to the assign.php file. Hope this may help you.
$.ajax
is not expecting a DOMElement of type HTMLInputElement
in the object you are passing to data
. Try just giving it the value of the field instead:
var wordid = $('.wordId').val();
$.ajax({
url: "assigner.php",
type: "POST",
data: { wordid: wordid, assign: assign}
}).done(function( e ) {
/*alert( "word was saved" + e );*/
});