Jump to content

javascript coding problems


Recommended Posts

I've created a form.

**********************************************************************

<form id="form1" method="post">

<table border="0">

<tr>

<td>User Id</td>

<td><input type="text"name="User Id" id="UserId" /></td>

</tr>

<tr>

<td>Date</td>

<td><input type="text"name="DateOfReg" id="DateOfReg"/></td>

</tr>

<tr>

<td>E-mail Address:</td>

<td><input type="text"name="E-mail Address:" id="Email"/></td>

</tr>

<tr>

<td>Name:</td>

<td><input type="text"name="NameOfUser" id="NameNameOfUser"/></td>

</tr>

<tr>

<td><input type="image" src="SUBMIT.gif" onclick="DispUser()"/></td>

<td><input type="image" src="RESET.gif"/></td>

</tr>

</table>

</form>

*******************************************************************

I want to write javascript code for the processes in the HTML file:

1. check for the condition if any of the cell is NULL

2. validation of e-mail address, like it must contain atleast one '@' 'dotcom(.com)'

Can anyone provide me some ideas??

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy