Design a site like this with WordPress.com
Get started

Function to Compare text of Password and Confirm Password field and placing it in document.ready function

Solution <script> $(document).ready(function () { $('#Password, #CPassword').on('change', function () { var ps = $("#Password").val(); var cps = $("#CPassword").val(); if (ps != null && ps != '' && cps != null && cps != '') { if (ps != cps) { alert("Please Enter the same Password in both fields"); $('#Password').css('border-color', 'red'); $('#CPassword').css('border-color', 'red'); } else {... Continue Reading →

Create a free website or blog at WordPress.com.

Up ↑