开发者

Using jQuery to validate JSON input into a form textarea field

开发者 https://www.devze.com 2023-02-09 03:41 出处:网络
How can JSON inpu开发者_JAVA技巧t into a form textarea field be validated using jQuery?You can use jQuery.parseJSON

How can JSON inpu开发者_JAVA技巧t into a form textarea field be validated using jQuery?


You can use jQuery.parseJSON

var theJson = jQuery.parseJSON($(this).val())

quick example on jsfiddle.

0

精彩评论

暂无评论...
验证码 换一张
取 消