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

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -