When you use an <apex:... id="...">
component, the id
value gets prefixed. The simplest fix is to use the "ends with" ($=
) selector:
var input = $("[id$='notes']");
var notFound = $("#notes"); // this value is not the literal id
See also:
When you use an <apex:... id="...">
component, the id
value gets prefixed. The simplest fix is to use the "ends with" ($=
) selector:
var input = $("[id$='notes']");
var notFound = $("#notes"); // this value is not the literal id
See also: