'I am showing data using jQuery. But I also have to show some data in the original div
Please help me in show both data
<div class="short_leave 14" id="short_leave">
<?php $minDate = date('Y-m-d\T00:00');
$maxDate = date('Y-m-d\T00:00');
$subdate = date('Y-m-d\T00:00', (strtotime('+1 day', strtotime($maxDate)))); ?>
<br /><input type="datetime-local" name="sl_end" id="sl_end" min="<?php echo $minDate; ?>" max="<?php echo $subdate; ?>" /><span class="bold">Estimated End Time</span>
</div>
$.ajax({
url: "<?php echo site_url('logbook/subActById'); ?>",
type: "POST",
data: {
activity: this.value
},
success: function(data) {
$('#short_leave').html(data).show();
}
});
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
