Posted By

donaldcook on 11/23/10


Tagged

list toggle selected FBJS


Versions (?)

FBJS toggle selected item in list


 / Published in: JavaScript
 

Pass this for onclick. Add 'selected_image' id to css.

  1. function showSelected(selected_card) {
  2. if (document.getElementById("selected_image")) {
  3. document.getElementById("selected_image").setId('');
  4. }
  5. selected_card.setId('selected_image');
  6. }

Report this snippet  

You need to login to post a comment.