常用js操作
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<c:set var="kobe" value="${pageContext.request.contextPath}"/>
<script language="javascript" src="${kobe}/js/common/jquery-1.7.2.js"></script>
<script type="text/javascript">
var param = document.getElementById("param").Value;
var chk = document.getElementsByName("chk");
var msg;
if(chk.length > 0)
{
msg += chk[0].id;
}
var type = $("#type").val();
$("#param").hide();
$("#param").show();
$("#param").html("替换内容");
$("#param").bind("change",function(){kobe();});
$(".right").bind("click",function(){on_submit();});//class="right"
$("#f_id").keydown(function(e){};
$("#name_id").bind("blur",function(){checkName();});
$(function(){});
$.trim("${id}") != "";
$("#gid").val("${id}");
$("#help_id").attr("href","${ctx}/kobe/kobe.xhtml?gid=${gid}");
</script>