O'Reilly Forums: Make Each Item Of The List Clickable To Different Page - O'Reilly Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Make Each Item Of The List Clickable To Different Page

#1 User is offline   itzik elyahou 

  • New Member
  • Pip
  • Group: Members
  • Posts: 1
  • Joined: 25-November 12

Posted 18 February 2013 - 05:16 AM

Hello all
I am directing a list from JS to an HTML div. the list is all printed on that div. however, i want to program it so that clicks on every list item will cause different action from the app. Clicking on each item will open a drop-down menu which will allow actions only rellevant to itself.
please help me find a way which will allow different actions for different item instead of one action to all items (as shown below).
Thanks a lot
Isaac

JS part
document.getElementById("List").innerHTML=Diamonds.rows[0];
document.getElementById("List").innerHTML=Diamonds.rows[1];

HTML part
<div id=MainDiv style="overflow: scroll; -webkit-transform: translate3d(0px, 0px, 0); -webkit-transition: 0ms linear;" data-pull-scroller='true' data-footer='footerui'>
<span id="List" style="color:white; font-size:32px; text-transform:uppercase; border-color:white; border-width:10px; border-style:solid"> </span>
</div>
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users