• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 362
  • Last Modified:

loop jSON value in jquery

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
Stealthrt
Asked:
Stealthrt
  • 2
1 Solution
 
leakim971PluritechnicianCommented:
 var $theRowCount; 
 
 $theRowCount = 9; 
 
 while($theRowCount < 30){ 
    $('#row' + $theRowCount + '_1').html(data[ 'row' + $theRowCount + '_1' ]); 
    $theRowCount ++; 
 } 

Open in new window

0
 
StealthrtAuthor Commented:
Awesome! Thanks :o)
0
 
leakim971PluritechnicianCommented:
you're welcome!
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now