Javascript examples for jQuery Method and Property:jQuery Method Example
Eval or parse jquery code that's pulled in as a .val() value
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <script type="text/javascript" src="https://code.jquery.com/jquery-1.5.2.js"></script> <script type="text/javascript"> $(function(){/*from w w w . j a v a2 s. co m*/ $('#textarea-content').change(function () { var test_val = eval($(this).val()); console.log(test_val); }); }); </script> </head> <body> <input id="textarea-content"> </body> </html>