Passing parameters to a jquery function from a button click
<p>I'm a complete novice - sorry!</p>

<p>I have to be able to change the colour of text via three buttons (red, blue and black)</p>

<p>The function I have, which works fine is as follows:</p>

<pre><code>function btn_click() {
$("#col1 p").css("color", "#00f");
    }
</code></pre>

<p>I need to pass two variables to this function, the specific tag (e.g. col1 p) and the hex value from the following function call:</p>

<pre><code>&lt;input type="image" value="" class="but-blue" onclick="btn_click();" /&gt;
</code></pre>

<p>Can anyone help? Many thanks in advance. Steve</p>
