Skip to main content
2 of 2
added 52 characters in body
Adrian Larson
  • 151.4k
  • 38
  • 247
  • 431

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:

Adrian Larson
  • 151.4k
  • 38
  • 247
  • 431