How to change input field value
How to change input field value
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