SuiteScript developers transitioning from standard JavaScript may encounter a common error when using the traditional jQuery syntax. This TypeError occurs when the dollar sign symbol ($) is used instead of jQuery() in NetSuite’s SuiteScript.
To resolve this, simply replace the dollar sign ($) with jQuery() in your code. NetSuite’s environment requires the full jQuery() function name, so this minor adjustment will ensure the code functions as expected.![]()

Sample code:
var htmlElement = jQuery('#html-element').val();
alert(htmlElement);