javascript - To hide the div on ajax call if I get result -
here, getting result through ajax. want hide div if result ajax. below div want hide if result through ajax. here code, $("button").click(function(){ var dateselect=$("#dateselect").val(); var userselect = $("#employee").val(); $.ajax({ type: 'get', url: "<?php base_url() ?>manage_attendance/listing", data:'dateselect='+dateselect+'&userselect='+userselect, datatype: "json", success: function(data) { $('.clkin_time').html(data.result); if(data.clkout_result != "0000-00-00 00:00:00") { $('.clkout_time').html(data.clkout_result); //document.getelementbyid('selecttime').style.display = "hidden"; } else { $('.clkout...