Hello, guys
this code is not working and i don’t know why
Hello, guys
this code is not working and i don’t know why
i’ve tried to do everything and it’s the latest version of code
i was doing with tag “body” and without it, i was using google’s link of jquery and uploaded jquery.min.js on server, i inserted link of jquery in the head and out of this
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
</head>
<body>
<input type="text" name="fio" placeholder="Имя" required>
<input type="text" name="tel" placeholder="Телефон" required>
<div id="form_result"></div>
<input type="submit" value="Заказать звонок">
<script type="text/javascript" src="/js/bootstrap.min.js"></script>
<script>
$("#submit").click(function() {
var name = $('input[name=name]').val();
var tel = $('input[name=tel]').val();
var otpravka = true;
if(name==""){
otpravka = false;
}
if(tel==""){
otpravka = false;
}
if(otpravka)
{
dannie = {‘polz_name’:name, ‘polz_tel’:tel};
$.post(‘send.php’, dannie, function(otvet){
rezultat = ‘’+otvet.text+’’;
$("#form_result").hide().html(rezultat).slideDown();
}, ‘json’);
}
});
no errors in console
What is your 000webhostapp URL or email?