I am a total jQuery noob. But I need to use it for a script in combination with PHP. The idea is that people can add a new lawyer on the backend and that a button and content are added to the page. On the site you would then be able to cycle through the lawyers by using the buttons as in the example below.
http://strak-design.com/varlaw/team
Here is the site in question and how I would like it to work. Right now it's simply smoke and mirrors for my clients and if I add and remove lawyers dynamically it obviously breaks.
Here's my HTML/PHP. Any ideas? In don't even know where to start...
<?php foreach ($team as $lawyer) { ?>
<div id="<?php echo $lawyer->id?>_button" class="lawyer_title_small title-<?php echo $lawyer->title_colour;?>">
<h2><?php echo $lawyer->name?></h2>
</div>
<?php }?>
<?php foreach ($team as $lawyer) { ?>
<div id="<?php echo $lawyer->id;?>" class="team_info">
<div class="team_info_left">
<img src="img/team/<?php echo $lawyer->picture;?>"/>
<table>
<tr>
<th style="color: #9e0039;">TEL:</th>
<th><?php echo $lawyer->tel;?></th>
</tr>
<tr>
<th style="color: #9e0039;">GSM:</th>
<th><?php echo $lawyer->gsm;?></th>
</tr>
<tr>
<th style="color: #9e0039;">MAIL:</th>
<th style="font-size:15px;"><?php echo $lawyer->mail;?></th>
</tr>
</table>
</div>
<div class="team_info_right">
<h4>OVER <?php echo $lawyer->name;?></h4>
<?php echo $lawyer->about;?>
<h4>VOORKEURKENNIS:</h4>
<?php echo $lawyer->knowledge;?>
</div>
</div>
<?php }?>
If it isn't clear, I'll try to explain further. Thanks a lot!