javascript - Is it possible to access the inner property of a JQuery plugin? -


Based on a user action I am trying to replace additional parasions in this plugin .

  var t = new $ .TextboxList ('# entSearch', {unique: true, plugins: {autocomplete: {minLength: 3, queryRemote: true, placeholder: wrong, remote: {url : "{{= URL (r = request, f = 'call / json / suggest')}}", additional paragraph: {type: "", guid: ""}}}}}});  

An error throws by executing the following line: Auto-Corrected .remote is undefined

  var tmp = autocomplete [' Remote '] [' extraParams'] ['type'];  

Is there a way to use these internal properties of the plugin, such as I refer to them in a dictionary?

Define this as a variable so that you can access it later.

Then you can access it like this:

  var tmp = plugins.autocomplete.remote.extraParams.type; // ... ... var tmp = plugins ['autocomplete'] ['remote'] ['extra perm'] ['type'];  

Comments