By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,376 Members | 1,718 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,376 IT Pros & Developers. It's quick & easy.

validation for login page with radio button

P: 1
validation for login page with radio button, if click on super admin radio button,i s

Expand|Select|Wrap|Line Numbers
  1. <td><font color="white">Role</font></td>
  2. <td>
  3.  <input type="radio" id="sa" name="admin"><font color="white">Superadmin</font></input>
  4.  <input type="radio" id="ad" name="admin"><font color="white">Admin</font></input>
  5.  </td>
  6.  </tr>
  7.  <tr>
  8.  <td><font color="white">Login name</font></td>
  9.  <td><input type="text" name="loginname" id="ln"></input></td>
  10.  </tr>
  11.  <tr>
  12.  <td><font color="white">Password</font></td> <td><input type="password" name="password" id="pwd"></input></td>
  13. <td><font color="white">Role</font></td>
  14. <td>
  15.  <input type="radio" id="sa" name="admin"><font color="white">Superadmin</font></input>
  16.  <input type="radio" id="ad" name="admin"><font color="white">Admin</font></input>
  17.  </td>
  18.  </tr>
  19.  <tr>
  20.  <td><font color="white">Login name</font></td>
  21.  <td><input type="text" name="loginname" id="ln"></input></td>
  22.  </tr>
  23.  <tr>
  24.  <td><font color="white">Password</font></td>
  25.  <td><input type="password" name="password" id="pwd"></input></td>
  26.  </tr>
  27.  <tr>
  28.  <td><input type="submit" value="submit" onclick="return valid()" ></input></td>
  29.  </tr>
  30.  </tr>
  31.  <tr>
  32.  <td><input type="submit" value="submit" onclick="return valid()" ></input></td>
  33.  </tr>
May 6 '13 #1
Share this Question
Share on Google+
1 Reply


gits
Expert Mod 5K+
P: 5,390
what is your exact issue with the posted code?
May 6 '13 #2

Post your reply

Sign in to post your reply or Sign up for a free account.