PasswordInput2.onchange = function() {
if (PasswordInput1.value != PasswordInput2.value) {
NSB.MsgBox("Passwords do not match!");
}
}
No edit summary |
|||
Line 25: | Line 25: | ||
|} | |} | ||
== Example | == Example == | ||
< | <tabber> | ||
JavaScript= | |||
<syntaxhighlight lang="JavaScript"> | |||
PasswordInput2.onchange = function() { | |||
if (PasswordInput1.value != PasswordInput2.value) { | |||
NSB.MsgBox("Passwords do not match!"); | |||
} | |||
} | |||
</syntaxhighlight> | |||
|-| | |||
BASIC= | |||
<syntaxhighlight lang="vb.net"> | |||
Function PasswordInput2_onchange() | Function PasswordInput2_onchange() | ||
If PasswordInput1.value <> PasswordInput2.value Then | If PasswordInput1.value <> PasswordInput2.value Then | ||
Line 33: | Line 44: | ||
End If | End If | ||
End Function | End Function | ||
</syntaxhighlight> | |||
</ | </tabber> | ||
</ | |||
== Output == | == Output == |
jqxPassword manages inputting passwords. It features the ability to measure the strength of passwords.
jqWidgets is a commercial product, which depending on how you use it, requires a license fee. Complete details are on jqWidget's website. The product is well supported.
This control is well documented on the jqWidget's website: http://www.jqwidgets.com/jquery-widgets-documentation/.
maxLength | Set maximum number of characters for password |
name | Key in submitted form |
onchange | This event is triggered when the value is changed and the control's focus is lost. |
placeHolder | Placeholder text |
showPasswordIcon | Gets or sets whether the Show/Hide password icon will appear. |
showStrength | Gets or sets whether a tooltip which shows the password's strength will be shown. |
PasswordInput2.onchange = function() {
if (PasswordInput1.value != PasswordInput2.value) {
NSB.MsgBox("Passwords do not match!");
}
}
Function PasswordInput2_onchange()
If PasswordInput1.value <> PasswordInput2.value Then
MsgBox "Passwords do not match!"
End If
End Function
See above.