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

Popular posts from this blog

symfony - TEST environment only: The database schema is not in sync with the current mapping file -

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -