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: