Skip to content
Advertisement

Jquery not showing button

Trying to show the submit button when the login fails, but unable to show it.

My Code:-

JavaScript

So when I try to login with the above codes:

  1. It alerts Logged In when credentials are correct.
  2. It only alerts Error when credentials are not correct (password incorrect) (But as per the code it should show the submit button again.)
  3. It alerts Email not found when Email is not found

Advertisement

Answer

Your script is running in iframe. And your script wants to change the things in parent. For this you should tell the code where to be executed. (parent.$()…….)

Below will help you to get the submit button.

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement