 <p>Try this:</p> <pre><code>function Contact_OnAddTelephone() { var type = $("#rdoTelephoneType").val(), areaCode = $("#txtAreaCode").val(), radio = $('&lt;input&gt;').attr({ type: 'radio', id: 'rdoTelePrimary', name: 'rdoTelePrimary', onclick: 'myRadioButtonClickFunction' }); $('#tableTelephone tr:last').after("&lt;tr&gt;&lt;td&gt;" + type + "&lt;/td&gt;&lt;td&gt;" + areaCode + "-" + number + "&lt;/td&gt;&lt;td&gt;" + radio[0].outerHTML + "&lt;/td&gt;&lt;/tr&gt;"); } function myRadioButtonClickFunction(){ // do stuff } </code></pre> <p>NB: Not tested.</p> <p>By the way, you might want to use camelCase on function names.</p>