代码如下: %@ page language="java" contentType="text/html; charset=gbk" pageEncoding="gbk"% %@ include file="/pages/common/taglibs.jsp"% !DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd" html head script type="text/javascript" src="jquery-1.4.js"/script script type="text/javascript" $(document).ready(function(){ $("input[id^='buttonValidate']").click(function(){ //当点击所有的id中包含'buttonValidate'的input标签时,执行函数 var btnVal=$.trim($(this).val());//trim函数,去掉空格 var str = $('#textareaValidate').val() + btnVal;// $('#textareaValidate').val(str);// }); }); /script titleInsert title here/title /head body form id="form1" name="form1" action="" method="post" table id ="table1" class="base_table" cellspacing="0" border="1" tr td textarea cols="75" rows="5" id="textareaValidate"/textarea /td /tr tr id="tr1" td input id="buttonValidate1" type="button" value=" + "/ input id="buttonValidate2" type="but……
mysql textarea_mysql数据库与textarea中的换行符知识点讲解
最新推荐文章于 2023-02-22 16:38:22 发布