IT码农库

您当前所在位置:首页 > 网络编程 > 正则表达式

正则表达式

如何用正则取input type="text"中的value

网络 2006-10-25正则表达式4094
1.如何通过正则取input type="text"中的value呢? 2.如何过滤掉input type="checkbox"的标签? 这样只能达到正则取input type="text"中的value可是不能过滤掉input type="checkbox"的标签! alert function pla(str) { var re=/]+?value=(\"|\')([^>]*)\1[^>]+?>/gi; return(str.replace(re,"$2")); } [C...
1.如何通过正则取input type="text"中的value呢?
2.如何过滤掉input type="checkbox"的标签?
这样只能达到正则取input type="text"中的value可是不能过滤掉input type="checkbox"的标签!


[Ctrl+A 全选 注:引入外部Js需再刷新一下页面才能执行]


[Ctrl+A 全选 注:引入外部Js需再刷新一下页面才能执行]


解决:

[Ctrl+A 全选 注:引入外部Js需再刷新一下页面才能执行]

大图广告(830*140)