$('#submit').click(function(){ var redval = $('.red').val(); var grenval = $('.green').val(); $('.showCheckedValue').text(redval+'&'+grenval ); });