How to change input field value

How to change input field value

zee.mughalzee.mughal Posts: 1Questions: 0Answers: 0
edited December 2017 in Free community support

jQuery(document).ready(function($) {
var table=$('#datatable').dataTable({
"bPaginate": false
});

$('#datatable_filter input[type="text"]').attr('placeholder', 'Table search');
$('#datatable_filter input[type="text"]').bind('keyup', function(e) {

if(e.keyCode == 13) {
var arrcount=(table.$('tr', {"filter":"applied"}).length);
if(arrcount>1)
{
alert("Please Enter Correct Search");
}
if(arrcount == 1)
{
console.log("arrcount",arrcount);
$('#status_1').val('2');
}
}
});
});
#status_1 is the input field id
i am using datatable 1.9.4

This discussion has been closed.