Sorry. You can’t put Apex in your Javascript.
You make a remoting call from your Javascript to an Apex function. That is detailed here: https://community.skuid.com/t/calling-apex-function
Sorry. You can’t put Apex in your Javascript.
You make a remoting call from your Javascript to an Apex function. That is detailed here: https://community.skuid.com/t/calling-apex-function