Guest User

Untitled

a guest
Jul 20th, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. <ul data-role="listview" id="lv_systems" data-inset="true">
  2. <li><a href="#page2" data-id="sys1">System 1</a></li>
  3. <li><a href="#page2" data-id="sys2">System 2</a></li>
  4. ....
  5. </ul>
  6.  
  7. $(document).ready( function () {
  8.  
  9. $('#select_system').live ('pagecreate', function(){
  10. $('#lv_systems').delegate('li', 'click', function(){
  11. alert('list item clicked');
  12. });
  13. });
  14. $('#lv_systems').listview('refresh');
  15. });
  16.  
  17. ....
  18. $('#lv_systems').delegate('li', 'vclick', function(){
  19. ....
Add Comment
Please, Sign In to add comment