Spring Spring-JS vs JQuery form submit

Spring Spring-JS vs JQuery form submit

I am working on a Spring Webflow project that was builded with Spring-JS but the firm is requesting me to change the following code to use JQuery. I am NOT a JavaScript/JQuery programmer so I do need some help with now..

Below is working code that on a change of a selectbox (called borough) it will change the _eventID(need it for webflow) to loadSchools and then do a form submit of everything on the pages. I been trying for days to get this working in JQuery but nothing is working

Below is the old working code using Spring-JS

  1. <script type="text/javascript">
  2.                     Spring.addDecoration(new Spring.AjaxEventDecoration({
  3.                         elementId: "borough",
  4.                         formId: 'member',
  5.                         event: "onchange",
  6.                         params: {_eventId: 'loadSchools', fragments: 'contents'}
  7.                     }));
  8. </script>

Here is the code I been working on that DON'T work:

  1. <script type="text/javascript">
  2.     $(document).ready(function () {
  3.         $("#borough").change(function() {
  4.             $('input[name="_eventId"]').val('loadSchools').appendTo('#member');
  5.             $('#member').submit();
  6.         });
  7.     });
  8. </script>