$("#contentdesc").removeClass("none"); } if (Email=="" || content==""){ return; } $.ajax({ url:'/form/post-email.html', type:"POST", data:{ "name":Name, "email":Email, "company":company, "message":content, "url":window.location.href }, success:function (data) { $(".right_send .p1").addClass('none'); $(".right_send .p2").addClass('none'); $(".right_send .p3").removeClass('none'); } }) }) $("#attach").change(function(r){ var file = $("#attach").val(); console.log(file); })