function applyJobAds(jobID, positionTitle){ if(jobID && positionTitle){ Swal.fire({ showCancelButton: false, // There won't be any cancel button showConfirmButton: false, // There won't be any confirm button allowOutsideClick: false, title: 'Processing' }), Swal.showLoading(), $.ajax({ type: "POST", url: '/employment/getdata.php', data: [ {name: 'mode',value: 'getjobadsapplypopup'} , {name: 'jobID',value: jobID} , {name: 'url',value: $('#side_url_hidden').val()} ], cache: false, success: function (response) { if (response) { if (response!= "NODATA") { Swal.close(); $('#AddMasterPopup .modal-title').html('Apply Now For '+ positionTitle +''); $('#AddMasterPopup #dynamicbody').html(response); $('#AddMasterPopup').modal('show'); } else { Swal.fire('Job Apply', 'No Data Found...', 'error'); } } else { Swal.fire('Job Apply', 'Error in Fill Data', 'error'); } } }); } }