Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <script type="text/javascript">
- $(document).ready(function(){
- $(".pname").change(function(){
- var id=$(this).val();
- var dataString = 'id='+ id;
- $.ajax
- ({
- type: "POST",
- url: "get_price.php",
- data: dataString,
- cache: false,
- success: function(html)
- {
- $(".price").val(html);
- }
- });
- });
- });
- </script>
- </head>
- <body>
- <form name="pro[]" method="post">
- <select name="f1">
- <option>1</option>
- <option>2</option>
- <option>3</option>
- </select>
- <input name="pro2[]" />
- </form>
- </body>
- <html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement