Write a jQuery code that will check whether the text-box for username is blank. If it is blank, an alert should be displayed. Use the incomplete code below: $(document).ready(function(){ $(...



  1. Write a jQuery code that will check whether the text-box for username is blank. If it is blank, an alert should be displayed. Use the incomplete code below:



$(document).ready(function(){


$( "#sendDataBtn" ).click(function(){



// Missing code 1 -
to capture value of txtUsername and save it in variable uname



if
(// Missing code 3 –
condition to check if username is blank){



//Missing Code 4 – to display popup message “Username required”


}




  1. Write a jQuery code that will check whether the username entered has a minimum length of 7 characters and maximum length of 10 characters. If it is less than 7 or more than 10, an alert with an error message should be displayed.





  1. Write a jQuery code that will check whether the value entered in password and confirm password fields are the same. If they are not the same, an alert with an error message should be displayed. Use the incomplete code below:







Jun 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here