フォームを送信する前に、URL クエリ文字列を変更したいと考えています。私は以下のようなフォームを持っています:
<form name="sampleForm" id="sampleForm" method="get" action="/detailVal" style="display:inline">
<input type="hidden" name="cId" value="${lId}"/>
<input type="hidden" name="sId" value="${sId}"/>
<input type="hidden" name="pKey" value="${pKey}"/>
onclick="return resetPage('sampleForm',)"><img height="40" width="30" src="/img/next123.png"/></a>
</form>
<script type="text/javascript">
function resetPage(formName) {
var thisForm = doc
}
</script>
フォームを送信する前に、URL を から に変更し/detailVal?cId=1&sId=2&pKey=3
たい/detailVal/cId/1/sId=2/pKey/