I have the following form

<form name="crudForm" method="post" action="/trips/searchLoads.do"
onsubmit="changeQuickSearchAction(this);return true;">

 

..

</form>

 

with the javascript code:

 

function changeQuickSearchAction(theForm) {
 
      var theSelect = document.getElementById("searchType");
      var theSelectValue =
theSelect.options[theSelect.selectedIndex].value; 
      if (theSelectValue == "equipmentId") {
        theForm.action ="/trips/searchEquipments.do";
      } else {
        theForm.action= "/trips/searchLoads.do";
      }
  }

 

 

 

 

The script does not seem to be executed.

 

Any help, I will appreciate it?

 

gs

 

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
JWebUnit-users mailing list
JWebUnit-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jwebunit-users

Reply via email to