如何验证javascript表单中的文本区域
选择 | 换行 | 行号
- <script>
- function val()
- {
- //ifnewline found or blank raise an alert
- }
- </script>
- <form>
- <textarea name = "pt_text" rows = "8" cols = "8" class = "input" WRAP ></textarea>
- <input type=""button" onclick="val();"
- </form>