javascript - Uncaught TypeError: Cannot read property 'values' of undefined -
iam using jquery hacker list plugin.
i have created list manually, working. but
here, have creating list items automatically, time im getting error
uncaught typeerror: cannot read property 'values' of undefined hacker list code is
var options = { //item: 'hacker-item', values: ['name'] }; var hackerlist = new list('hacker-list', options); i called code on ready event.. somehow find issues is. list created dynamicaaly list initialized in ready event. problem.
how can rectify this?. not plugin issue. pure jquery issue. ready event called before list creating..
since there's no values property defined plugin, hence error, valuenames not values, per plugin docs, change to:
var options = { valuenames: ['name'] }; var hackerlist = new list('hacker-list', options);
Comments
Post a Comment