Jump to Navigation

Reply to comment

Hey Tom,

Working with arrays in javascript is pretty easy.  First off you'll need to declare it as a variable.

var data = [];

data is going to be our array.  Now let's throw in our data into the array.

var data = [
 {text:'Web Design', url:' http://www.nimpkish.com/web-design'},
 {text:'Web Development', url:'http://www.nimpkish.com/web-development'},  {text:'Drupal Development', url:'http://www.nimpkish.com/drupal'},
 {text:'Graphic Design', url: 'http://www.nimpkish.com/graphic-design'}
];

That should do the trick!

Reply