Jump to content

Help in dhtml


CrackUC

Recommended Posts

I was revising and spinning my hand in dhtml...i found some dificulties  someone answer these... 1.when i was making a form and the password feild i hide the actual letters by black dots and the problem is i made 2 coloumns 1 password and second confirm password.... but the process how to make a source like that they actually indeed check each other so that they are same or not... 2..then if the pass aren't matching then hw to display that text above the box they aren't same??? 3..if i make a restriction thatpass should be nt less than 5 letters ..then for that plz write a script VB based..! 4.if i make a list in drop down menu i added many things bt the user would be fed up to find his thing so if he wants delhi in list and their a lot of content in that so when he press d all things from d lettes should be highlited up...how make that script??

Link to comment
Share on other sites

1. You will need to use javascript to perform this operation.

Try with this set of javascript

function validate(form) {
var e = form.elements;

/* Your validation code. */

if(e['password'].value != e['confirm-password'].value) {
alert('Your passwords do not match. Please type more carefully.');
return false;
}
return true;
}with a form along the lines of

<form action="..." method="post" onsubmit="return validate(this);">
<!-- ... -->

<label>Password:
<input type="password" name="password" value="">
</label>
<label>Confirm password:
<input type="password" name="confirm-password" value="">
</label>

<!-- ... -->
</form>
Link to comment
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.
Note: Your post will require moderator approval before it will be visible.

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.

Loading...
×
×
  • Create New...