Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~235 People Reached
Favorite Forums
Favorite Tags
php x 3
Member Avatar for Angeline5

Is there a foreach code in JQuery as in PHP? I have a code in php,like [code] <?php foreach ($viewfields as $viewfield): ?> if("<?php echo $viewfield['Attribute']['required'];?>"=='true'){ $("<span class='req'><em> * </em></span>").appendTo("#fb_contentarea_col1down21 #label<?php echo $viewfield['Attribute']['sequence_no']?>"); } if(<?=$viewfield['Attribute']['type'];?>=='text'||<?=$viewfield['Attribute']['type'];?>=='date'||<?=$viewfield['Attribute']['type'];?>=='number'){ $("<input id=input<?=$viewfield['Attribute']['sequence_no'];?> type= 'text' style= 'width:<?=$viewfield['Attribute']['size'];?>px' data-attr=<?=$viewfield['Attribute']['type'];?> ></input><br>").appendTo("#fb_contentarea_col1down21 #<?=$viewfield['Attribute']['sequence_no'];?>"); } else if(<?=$viewfield['Attribute']['type'];?>=='textarea'){ $("<textarea style= 'width:<?=$viewfield['Attribute']['size'];?>px' …

0
38
Member Avatar for Angeline5

I have two arrays, Forms and formsShared. [code] <?php foreach ($Forms as $r): ?> $("#shareform<?=$r['Form']['id'];?>").hide(); $(".Share<?=$r['Form']['id'];?>").click(function(){ $("#shareform<?=$r['Form']['id'];?>").toggle("show"); }); <?php endforeach; ?> [/code] Currently, I have this hide and toggle function for each Form in the Forms array. I want these functions to be enabled for the forms in the formsShared …

Member Avatar for Menster
0
197