Advertisement
Guest User

Untitled

a guest
Mar 5th, 2015
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. function CreateListview{
  2. var temp ='<li><a href="#" class="anchor">String Here</a></li>';
  3. $("#<ul>-selector").append(temp).listview("refresh");
  4. }
  5.  
  6. $(document).on('vclick', '.anchor', function(e){
  7. e.preventDefault();
  8. alert("ANCHOR CLICKED");
  9. });
  10.  
  11. $(document).on('vclick', '#ul-selector > li', function(e){
  12. alert("<li> CLICKED");
  13. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement