Solved

loop jSON value in jquery

Posted on 2012-03-26
3
356 Views
Last Modified: 2012-03-26
Hey all how can i set this up for a loop?
data.row9_1 

Open in new window


I cant seem to do it this way:
 var $theRowCount; 
 
 $theRowCount = 9; 
 
 while($theRowCount < 30){ 
    $('#row' + $theRowCount + '_1').html(data.row + $theRowCount + '_1'); 
    $theRowCount ++; 
 } 

Open in new window

Any ideas would be great!

David
0
Comment
Question by:Stealthrt
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 82

Accepted Solution

by:
leakim971 earned 200 total points
ID: 37769238
 var $theRowCount; 
 
 $theRowCount = 9; 
 
 while($theRowCount < 30){ 
    $('#row' + $theRowCount + '_1').html(data[ 'row' + $theRowCount + '_1' ]); 
    $theRowCount ++; 
 } 

Open in new window

0
 

Author Closing Comment

by:Stealthrt
ID: 37769265
Awesome! Thanks :o)
0
 
LVL 82

Expert Comment

by:leakim971
ID: 37769293
you're welcome!
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
This article discusses how to create an extensible mechanism for linked drop downs.
Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…
The viewer will learn how to dynamically set the form action using jQuery.

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question