Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jQuery #3

Closed
chaitra-bhat20 opened this issue Feb 18, 2022 · 3 comments
Closed

jQuery #3

chaitra-bhat20 opened this issue Feb 18, 2022 · 3 comments
Labels
help wanted Extra attention is needed

Comments

@chaitra-bhat20
Copy link

I need answer for this below question. Can anybody help please?

Error Message
Create an HTML page that should display the error status message when the user clicks the button ‘Click to Get the Employee Data’ with the id “btn-id” to load the JSON file ‘employee.json’ does not exist. Use jquery ajax() to perform the task. Display the error message “Error Message: Not found” in a div tag with the id ‘err-id’.

Note:

  1. Do not alter the files employee.html
  2. Write your code in employee.js file
  3. Avoid writing the jQuery 'document ready' method for the proper web page visibility.
  4. Do not use 'ES6' features.
@thesaravanakumar thesaravanakumar added the help wanted Extra attention is needed label Feb 18, 2022
@harikrishnan-creator
Copy link

$("#btn-id").click(function(){
$.ajax('employee.json',{
error: function(data,status,xhr){
$('#err-id').append("Error Message: Not found");
}
});
});

@Kabeer279
Copy link

Thanks bro..

@Harshul-Jain
Copy link

Proposed grade: 0.00 / 100
Result Description
Fail 1 : Request is not executed
Fail 2 : You have chosen the correct URL

how to pass the testcase?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

5 participants