我正在使用 Liferay 门户 6.1.1 CE。
在我的 liferay portlets jsp 页面view.jsp
中,我有一个带有 2 个文本字段和 2 个单选按钮(用户只能选择一个)和一个提交按钮的表单。
当我单击任何单选按钮时,控制转到正常工作的脚本函数。
现在我想将 2 个文本字段的值传递给脚本函数。我尝试了很多,但没有用。
我怎样才能做到这一点?
帮助我..提前谢谢。
<script>
function dif()
{
}
</script>
<form name="<portlet:namespace/>fm" method="post" action="<%=updateBookURL.toString()%>">
<table>
<tr>
<th>Leave Application</th>
</tr>
<tr>
<td>Employee <font color=red>*</font></td>
<td>
<input type="text" name="<portlet:namespace/>name"/>
<input type="text" name="<portlet:namespace/>eid" />
</tr>
<td>
Date <font color=red>*</font>
<input type="text" id="<portlet:namespace/>fd" name="<portlet:namespace/>
</td>
<td>
<input type="radio" name="<portlet:namespace/>f" id="f" value="1st half" onClick="f()"/>
First Half&=
<input type="radio" name="<portlet:namespace/>f" id="f" value="2ndhalf" onClick="f()"/>
Second Half
</td>
</tr>
<tr>
<td></td>
<td><input type="submit" value="save data" size="100px"/></td>
</tr>
</table>
</form>