In a plugin I\'m writing, the dev can specify options, which I\'m storing and referencing like so:
(function( $, window) {
$.widget(\"mobile.plug\", $.mo
What you're looking for is bracketed notation with strings:
for (var i = 0; i
...assuming that el.jqmData("panel") returns "mid", "menu", etc.
In JavaScript, you can refer to a property with either dotted notation and a literal (obj.foo), or bracketed notation and a string (obj["foo"]). In the latter case, it doesn't have to be a literal string, it can be the result of an expression.