I want to have a jQuery/PHP site that uses <span>
elements for the navigation links. I need to have a value
attribute to use
$(".navLink").click(function() {
window.location.href = "/index.php?page=" + this.value //or whatever
});
I can't use this.id
because it conflicts with other HTML elements. Is there any way to create and use a "dummy" HTML attribute?