Take the tour ×  In my page I have two radios, user may select
any one and type their search word in the input box, on button
click I would like to append to their search keyword the value
of selected radio?How do we do that in jquery or javascript?  So
if they typed in Dance and selcted 'classes' the actual search
keyword being passed will be 'Dance classes'
Events<input name="EventRadio" type="radio"
value="Events"/>&nbsp;         Classes<input name="EventRadio"
type="radio" value="Classes"/><br /><br />         <input
type="text" name="T1" style="width: 302px"/>         <input
type="button" value="Search" onclick="javascript:_SFSUBMIT_"/>
share|improve this question add comment  4 Answers  Need some
more information: are you wanting the additional keyword to be
displayed in the text box as well?  All you really need to do is
capture the value attr of the radio if checked in your SFSUBMIT
function. jQuery has several different constructs to do this.
share|improve this answer I just want to capture