Use same JQuery function in differents pages with different parameters
<p>I have a several pages which has the same ul (unordered list) with the same content, bur differents links:</p>

<pre><code>&lt;ul class='actions'&gt;
    &lt;li&gt;&lt;a href='...'&gt;1&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href='...'&gt;2&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href='...'&gt;3&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</code></pre>

<p>The thing is that I made a jquery function wich according to some parameters will delete or not some of the li elments.</p>

<p>My question is, if I have the same ul with the same class ("actions") in different pages, how can I configure differents parameters in my function.</p>

<p>I guess that I can put some hidden field in the page and get the parameters from there, but I think it is not the best approach..</p>

<p>Do you guys have a better idea?</p>

<p>Thanks</p>
