|
@@ -122,6 +122,10 @@
|
|
|
$.jBox.confirm("确定下架该商品吗?", "提示", submit, { buttons: { '确认': true, '取消': false} });
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ function onlynum(obj) {
|
|
|
+ obj.value = obj.value.replace(/[^\d]/g, ""); //清除"数字"以外的字符
|
|
|
+ }
|
|
|
</script>
|
|
|
</head>
|
|
|
<body>
|
|
@@ -136,7 +140,7 @@
|
|
|
<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
|
|
|
<div class="ul-form">
|
|
|
<label>商品ID:</label>
|
|
|
- <form:input path="id" htmlEscape="false" class="input-medium"/>
|
|
|
+ <form:input path="id" htmlEscape="false" class="input-medium" onkeyup="onlynum(this)"/>
|
|
|
<label>商品名称:</label>
|
|
|
<form:input path="productName" htmlEscape="false" class="input-large"/>
|
|
|
<label>供应商名称:</label>
|