$("#tbupload").click(function (){
var ds= document.getElementById('docx').value;
if(!ds.trim())
{
$('#gp-shadow-box').click(function() {
$('#gp-shadow-box-alert').fadeOut();
$('#boxprompt-alert').fadeOut();
});
$('.close').click(function() {
$('#gp-shadow-box').fadeOut();
$('#gp-shadow-box-alert').fadeOut();
$('#boxprompt-alert').fadeOut();
});
$('#gp-shadow-box').fadeIn();
$('#boxprompt-alert').fadeIn();
$('.boxlight-content-gp-alert').fadeIn();
$.ajax({
url: '',
type: 'GET',
data: {
act:"del_expe",
id: $('#id_dt').val()
},
success: function(msg) {
$('#text_alert').html(msg);
}
});
}
else{
$('#fupload_resume').hide();
$('#cans').fadeIn().show();
}
}
)
});
Ini script yang aku bikin.
untuk mengetahui dia empty atau tidak hanya menggunakan !ds.trim()
No comments:
Post a Comment
Terima kasih