$('input[type=radio][name=txt2]').change(function() { if (this.value == 'page_1') { } if (this.value == 'page_2') { }