Skip to content

Instantly share code, notes, and snippets.

@vikingmute
Created April 20, 2012 13:38
Show Gist options
  • Save vikingmute/2428632 to your computer and use it in GitHub Desktop.
Save vikingmute/2428632 to your computer and use it in GitHub Desktop.
question
<li class="selected"><a href="#">New Wave</a></li>
<li><a href="#">The World of Iggy & The Stooges</a></li>
<li><a href="#">80s College Rock</a></li>
<li><a href="#">The American 80s Underground</a></li>
<li><a href="#">Lo-Fi: Yesterday and Today</a></li>
一个这样的结构 我想监听一个事件 当其他的li变成selected的时候 就alert一下 这个怎么写?
@nttdocomo
Copy link

onpropertychange’你在ie下用这个试试能不能监听得到。其他用这个时间“DOMAttrModified”试试

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment