Problems with the button using jquery


#1

Hello, guys
this code is not working and i don’t know why


#2

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’);
}
});

#4

@packz Check for errors in console?? and post here?


#5

no errors in console


#6

What is your 000webhostapp URL or email?


#7

http://exhibitionistic-lub.000webhostapp.com/