I’m not familiar with JS, so please help me here
I’ve used to call element like this before:
$(.ddlPage).change();
Now I would like to replace ‘ddlPage’ with a string variable.
How can I call it with variable?
$(.elemID).change(); (is obviously wrong)
First of all, pass a string parameter to jQuery. In your case (if it is not a typo) you pass some variables in there, which works in some cases, but not in general.
Then just build the selector you need, so, e.g.:
Or to search for a
class:etc. Just built up a string containing the selector you need and pass it on to jQuery.