Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <form method="get" action="page.html">
- <input type="hidden" name="field1" value="value1" />
- <input type="hidden" name="field2" value="value2" />
- <select name="status">
- <option value=""></option>
- <option value="good">Good</option>
- <option value="bad">Bad</option>
- </select>
- </form>
- $("select").change(function(){
- $.get("page.html?" + serializeForm());
- });
- $(document).ready(function() {
- $('#myForm1').ajaxForm();
- });
- $("select").change(function(){
- $('#myForm1').ajaxSubmit();
- });
- $(document).ready( function() {
- var form = $('#my_awesome_form');
- form.find('select:first').change( function() {
- $.ajax( {
- type: "POST",
- url: form.attr( 'action' ),
- data: form.serialize(),
- success: function( response ) {
- console.log( response );
- }
- } );
- } );
- } );
- $("select").change(function(){
- $.get("/page.html?" + $(this).parent("form").find(":input").serialize());
- });
Add Comment
Please, Sign In to add comment