Jump to content

javascript coding problems

Recommended Posts

I've created a form.


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

<table border="0">


<td>User Id</td>

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




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



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

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




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



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

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





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.

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