CODE (javascript):
скопировать код в буфер обмена
скопировать код в буфер обмена
- <html>
- <head>
- <script type="text/javascript" src="js/jquery.min.js"></script>
- <script type="text/javascript">
- $(document).ready(function(){
- $('#submit2').click(function(){
- var brand = $("#brand").val();
- var model = $("#model").val();
- var color = $("#color").val();
- var price = $("#price").val();
- $.post('http://site/up.php'),
- {
- brand: brand,
- model: model,
- color: color,
- price: price
- },
- function(data){
- }
- );
- });
- });
- </script>
- </head>
- <body>
- <div class=one></div>
- <input type="text" id="brand" placeholder=" | Brand" required /><br>
- <input type="text" id="model" placeholder=" | Model" required /><br>
- <input type="text" id="color" placeholder=" | Color" required /><br>
- <input type="text" id="price" placeholder=" | Price" required /><br>
- <button id="submit2">OK</button>
- </body>
- </html>