i am created two radio buttons if i selected one how to disable next one

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shiva kimar

    #1

    i am created two radio buttons if i selected one how to disable next one

    i have created two radio buttons if i selected one how to disable next one

    Code:
    <tr class="prop">
                                    <td valign="top" class="name">
                                      
                                    </td>
                                    <td valign="top" class="value ${hasErrors(bean: servicesInstance, field: 'byStylist', 'errors')}">
                                       <input type="radio" name="byStylist" value="byStylist"> byStylist
                                      </td>
                                </tr>
    
                                <tr class="prop">
                                    <td valign="top" class="name">
                                        
                                    </td>
                                    <td valign="top" class="value ${hasErrors(bean: servicesInstance, field: 'bydate', 'errors')}">
                                      <input type="radio" name="byDate" value="byDate"> byDate
    
                                    </td>
                                </tr>
    Last edited by Dormilich; Oct 11 '10, 10:50 AM. Reason: please use [code] [/code] tags when posting code
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    simply give both radio buttons the same name.

    Comment

    Working...