I'm loading a calendar field via jquery ajax.
When I click the calendar button nothing happens. The calendar popup is not showing.
in model.php
$tr = "<td>" . JHTML::_('calendar', '2015-09-09', 'arr_stubat_join_date[]', 'stubat_join_date_' . $value->batch_id,'%Y-%m-%d', array('size'=>'15', 'maxlength'=>'15')) . "</td>";
return $tr;
jQuery Ajax
function loadBatch(){
jQuery('#task').val('profile.getbatch');
var dataString = jQuery("#profile-form").serialize();
jQuery('#ajax_loader_image').show();
jQuery.ajax({
type: 'POST',
url: 'index.php',
data: dataString,
cache: false,
success: function(result){
jQuery('#batch_container').append(result);
},
error: function(result){
}
});
}
loadBatch()
function, but how are you calling this function?loadbatch()
function. Then call model.php file forming JHTML calendar manually.