?
Solved

loop jSON value in jquery

Posted on 2012-03-26
3
Medium Priority
?
358 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 800 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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
The viewer will learn how to dynamically set the form action using jQuery.
Suggested Courses

771 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