samedi 28 février 2015

javascript select item that has href in it


i'm im making a file manager where you can edit files in bulk but i cant get the select function to work.


im using this file browser http://ift.tt/1qJW7Pi


and i have given my UL an id and added this script to the page



$("#test li").click(function() {
alert(this.id); // get id of clicked li
});


but when i click on an item it opens the url of it in sted of selecting it





Aucun commentaire:

Enregistrer un commentaire