Skip to main content
added 52 characters in body
Source Link
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']").doStuff(function;
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:

$("[id$='notes']").doStuff(function () { ... });

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:

Source Link
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:

$("[id$='notes']").doStuff(function () { ... });