 <p>You can have a single click handler for all the radio buttons with name <code>cureway</code></p> <p><div class="snippet" data-lang="js" data-hide="false"> <div class="snippet-code"> <pre class="snippet-code-js lang-js prettyprint-override"><code>$('input[name="cureway"]').click(function() { if (this.id == 'first') { alert('first') } else if (this.id == 'second') { alert('second') } });</code></pre> <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt; &lt;input type="radio" name="cureway" id="first" class="checker" /&gt;first &lt;input type="radio" name="cureway" id="second" class="checker" /&gt;second &lt;input type="radio" name="cureway" id="third" class="checker" /&gt;third &lt;input type="radio" name="cureway" id="forth" class="checker" /&gt;forth &lt;input type="radio" name="cureway" id="five" class="checker" /&gt;five</code></pre> </div> </div> </p>