Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang=pl>
- <head>
- <meta charset="UTF-8">
- <title>ptaki</title>
- <link rel="stylesheet" href="style.css" type="text/css">
- <!--Zainicjowanie jquery-->
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
- <!--Skrypt wywołujący calculatePrice.php bez odświeżania strony-->
- <!--Echo z PHP wyświetlane jest w znaczniku o id #result-->
- <script>
- $(document).ready(function(){
- $("#selectedPowiat").change(function(){refreshTable();});
- function refreshTable(){
- //debug
- //alert("cos jest wpisane");
- $.ajax({
- url: 'table.php',
- type: 'post',
- data: {powiat: $("#selectedPowiat").val()},
- success: function(result){
- $("#result").html(result);
- }
- });
- }
- });
- </script>
- </head>
- <body>
- <div id="kontener">
- <div id="banner">
- <a href="kwerenda1.png">Kwerenda 1</a>
- <a href="kwerenda2.png">Kwerenda 2</a>
- <a href="kwerenda3.png">Kwerenda 3</a>
- <a href="kwerenda4.png">Kwerenda 4</a>
- </div>
- <div id="lewy">
- <div id='obraz'>
- <img src='ptak.jpg' alt='ptak' id="obrazek">
- </div>
- </div>
- <div id="prawy">
- <?php include 'script.php'?>
- <br>
- <span id="result"></span>
- </div>
- <div id="stopka">
- Autor: Mateusz Ignaczak
- </div>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement