1
dynamisch hier Checkbox Code erstellt My:Passing in Array Checkbox Wert, wenn Kontrollkästchen aktiviert ist
$(function(){
var currentUser = JSON.parse(window.localStorage.getItem('customer'));
$.ajax({
type : 'GET',
url : LiveUrl1 + "/api/Recent/GetAllRecent?userId="+currentUser.Id,
async : false,
beforeSend : function(){/*loading*/},
dataType : 'json',
success : function(result){
//console.log(result);
var buffer="";
$.each(result, function(index, val){
buffer+="<li class='ui-menu-item'><div id='ui-id-2' tabindex='-1' class='ui-menu-item-wrapper'><input type='checkbox' on-change='checkboxChanged' value="+val.Id+" style='margin-right:6px;' id='selectchkbox' class='selectchkbox' />"+val.SearchTerm+"</div></li>";
$("#Recent").html(buffer);
});
}
});
});
Aber, wie kann ich passiere diesen Checkbox Wert im Array, wenn das Kontrollkästchen aktiviert ist?