java - how to solve error of aui radio button in jsp? -
hello using aui
radio in jsp. when see output @ web browser, user can select radio button value. user should able select 1 radio button can select all. how solve it? kindly me.
here jsp:
<aui:input inlinelabel="right" name="veryhigh" type="radio" value="1" label="very high" /> <aui:input name="high" type="radio" label="higher" /> <aui:input name="neutral" type="radio" label="neutral" /> <aui:input name="low" type="radio" label="low" /> <aui:input name="verylow" type="radio" label="very low" />
what mistake have done? please tell me.
if want select values radio group "name" attribute of radio type should same radio type in group. simple ex:
<input type = "radio" name = "gender" value = "male"/> <input type = "radio" name = "gender" value = "female"/>
when use above lines 1 of radio button (either male or female;depending on user clicks gets selected) if give separate name attribute above code, considered separate , hence when click on them both selected. happening in code.
<aui:input name="high" type="radio" label="higher" /> , <input type = "radio" name = "gender" value = "male"/>
both work same way.. aui alloy ui tag used in liferay...