To avoid excessive $('#.').click()-functions, I want to pass arguments in an li element.
What would be the proper way in HTML5?
example:
<ul>
<li>I'm clickable<code>method|parm1,parm2</code></li>
....
$('li').click(e) function() {
//I will read the method and serve...
The
tag is there for styling only. You should probably use data attributes like so: