时间:2021-05-27 08:45:34 | 栏目:jquery | 点击:次
如下所示:
function bt_submit(){ var $title = $.trim($("#title").val()); if($title=='') { ShowMessage("运营商名称不能为空","#ff0000"); return; } document.all.form1.submit(); }
html代码如下:
<tr> <td width="18%" align="right">运营商名称:</td> <td colspan="3"><s:textfield id="title" key="operatorbean.title" size="88" value="%{#request.operatorbean.title}" /> </td> </tr>