November 13th, 2012, 03:19 PM
Displaying in Multiple div's in a for loop
I need to display some info in 4 div's enclosed in div row tag.
Suppose div a displays info from an array k based upon a criteria. if current element of k matches a criteria it displays in a . else not. So correspondingly there should be same entries in div's b and c based upon a item is displayed in a.
So if an item is displyed in div a then corresponding entry in b and c should also be displayed which holds the same index value.
I am thinking to use for loop for this. Can anyone specify how can I writeinto another div (b and c ) without closing the current div?
November 14th, 2012, 08:39 AM
for i=1 to 4
response.write "<div a>"
select case i
case 1 response.write"<div a>"
case 2 response.write"<div b>"
case 3 response.write"<div c>"
case 4 response.write"<div d>"
'your logic there
if you found this post is useful click Give Rep button (bottom side on this reply ) and agree
November 14th, 2012, 04:09 PM
If i Understand correctly you mean to replace the <div a> <div b> etc.. tags with the texts I need to print. right..?if so, they will be printed in div a only. If you mean the <div a> as a tag then it will create a new div with Id a. any of the solution does not work for me....If I get it wrong pls pardon me and direct me correctly.
Here is my requirement clearly:-
I need to display the text in more than one div's simultaneously while I was in another div without closing the current div.
for eg:- I have a <div a> and I am inserting data into a then I need to insert some more data into div b and c wihich are already defined without closing a. Hope I am clear now. if not please let me know...ASAP
November 16th, 2012, 10:01 AM
I'm not clear of what you need just publish small html sample of what result page should looks like