-
I have a model that shows data in a li tag on the left side.
-
On the right side one of the model.firstObject display
-
When users click on the current li tag, I would like change the right side model.firstObject to show current li data.
What's the best way to handle something like this?
<div class="food-menu">
<ul class="menu-list">
<li class="menu selectable ">
<div class="picture-wrapper">
<img src="" alt="">
</div>
<div class="info-box">
<h2 class="name"></h2>
<p class="light-blue title-company">
</p>
</div>
</li>
</ul>
</div>
<div class="menu-detail">
<div class="menu menu-banner">
<div class="picture-wrapper">
<img src="" alt="">
</div>
<div class="info-box">
<h2 class="light name"></h2>
<p class="light-blue title-company">
</p>
</div>
</div>
</div>
Aucun commentaire:
Enregistrer un commentaire