Guest User

Untitled

a guest
May 22nd, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. <div class="form-group">
  2. <label for="exampleInputEmail1">Введите адрес сайта</label>
  3. <input type="text" class="form-control" id="siteTitle">
  4. </div>
  5. <button id="submit" class="btn btn-primary" type="button">Проверить</button>
  6.  
  7. $(document).ready(function () {
  8.  
  9. $("#submit").click(function (e) {
  10. e.preventDefault();
  11. $.ajax({
  12. url: "check.php",
  13. type: "GET",
  14. data: {
  15. URL: $("#siteTitle").val()
  16. },
  17. success: function () {
  18. $('#result').load("check.php");
  19. }
  20. });
  21. });
  22. })
  23.  
  24. success: function (html) {
  25. $('#result').html(html);
  26. }
Add Comment
Please, Sign In to add comment