// ========= **************** ================
// ============= to set add new qus: txt/img =========
function set_qbox(qt){
if(qt === 'T') {
document.getElementById('Tqbox').style.display = 'block';
document.getElementById('Iqbox').style.display = 'none';
document.getElementById('t1').value = 'T';
} else {
document.getElementById('Iqbox').style.display = 'block';
document.getElementById('Tqbox').style.display = 'none';
document.getElementById('t2').value = 'I';
}
}
// ============= to get topics with subj_id ======
function get_stopics(subj){
$(".tcls").remove();
$.get(window.site_burl+"jqfunctions/get_topics/",{subj_id:subj},function(response){
if(response){
$(".tcls").remove();
$("#topic").append(response);
}
});
}
// ============= to get topics2 with subj_id =======
function get_stopics2(subj){
$(".tcls").remove();
$.get(window.site_burl+"jqfunctions/get_topics/",{subj_id:subj},function(response){
if(response){
$(".tcls").remove();
$("#topic2").append(response);
}
});
}
// ============= to update question =======
function updt_ques(qid, col, val){
$.get(window.site_burl+"jqfunctions/updt_ques/",{qid:qid, col:col, val:val},function(response){
if(response){
//alert(response);
}
});
}
// ************** to get batches with course_id*******************
function get_cbatches(subj){
$(".tcls").remove();
$.get(window.site_burl+"jqfunctions/get_cbatches/",{subj_id:subj},function(response){
if(response){
$(".tcls").remove();
$("#batch").append(response);
}
});
}
Friday, August 30, 2019
Jquery and Ajax get post sample method functions
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment