<td align="left">文字内容: <textarea name="mytext" type="text" placeholder="多个查询请用逗号/换行/空格分隔"
<script type="text/javascript">
$('textarea#mytext').change(function(){
var ordids = $('textarea[name="mytext"]').val();
for (var i = 0; i < ordids.length; i++) {
oid_c=ordids.substr(i,1);
if (oid_c=="\r"||oid_c=="\n"||oid_c=="\s"||oid_c==" "||oid_c==" "||oid_c==",") {
ordids=ordids.replace("\r",",");
ordids=ordids.replace("\n",",");
ordids=ordids.replace("\s",",");
ordids=ordids.replace(" ",",");
ordids=ordids.replace(" ",",");
ordids=ordids.replace(",",",");
}
};
$('textarea[name="mytext"]').val($.trim(ordids));
});
</script>
id="mytext" style="height:50px;width:110px"></textarea>
<script type = "text/javascript" src = "http://s1.bdstatic.com/r/www/cache/static/jquery/jquery-1.10.2.min_f2fb5194.js" ></script><script type="text/javascript">
$('textarea#mytext').change(function(){
var ordids = $('textarea[name="mytext"]').val();
for (var i = 0; i < ordids.length; i++) {
oid_c=ordids.substr(i,1);
if (oid_c=="\r"||oid_c=="\n"||oid_c=="\s"||oid_c==" "||oid_c==" "||oid_c==",") {
ordids=ordids.replace("\r",",");
ordids=ordids.replace("\n",",");
ordids=ordids.replace("\s",",");
ordids=ordids.replace(" ",",");
ordids=ordids.replace(" ",",");
ordids=ordids.replace(",",",");
}
};
$('textarea[name="mytext"]').val($.trim(ordids));
});
</script>