Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    May 2004
    Posts
    391
    Thanks
    76
    Thanked 0 Times in 0 Posts

    checkbox validation?

    Hello. How can I allow only one checkbox selected per row??
    <table><tr>
    <td width=8%>$itemid</td>
    <td width=6% id=\"tdID1\" ><input type='checkbox' ONCLICK=\"highlightRow(this, 'lime');\" class='normal2' name='edit[]' value='$line[id]' ></td>
    <td width=4% id=\"tdID1\" ><input type='checkbox' ONCLICK=\"highlightRow(this, 'red');\" class='normal2' name='delete[]' value='$line[id]' ></td>
    <td width=4% id=\"tdID1\" ><input type='checkbox' ONCLICK=\"highlightRow(this, 'blue');\" class='normal2' name='request[]' value='$line[id]' ></td>

    </tr></table>

  • #2
    Senior Coder
    Join Date
    Mar 2005
    Location
    Portsmouth UK
    Posts
    4,516
    Thanks
    3
    Thanked 505 Times in 492 Posts


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •