Home > front end >  [JavaScript] everyone a great god help small white, save the children ~
[JavaScript] everyone a great god help small white, save the children ~

Time:09-29

Want to do a simple authentication code Demo, there is a little small problem, use the jquery selected span, if captcha input error will be displayed wrong. PNG, right shows true. PNG, results in the browser can't display,

Through the console view, the style is changed, is not, according to

It should be normal as shown in figure:
Save the children ~ thank you very much!

CodePudding user response:

Why use the position: absolute; Absolute positioning,

CodePudding user response:

Do with jq selected span after judgment, wrong shows wrong, true, correct after the console examination, error after span label style is correct, but the true icon is not displayed on the page,

CodePudding user response:

Your CSS and js in the same HTML file, different file path is not the same

CodePudding user response:

reference XZZFXZ reply: 3/f
your CSS and js in the same HTML file, different file path is not the same as

Are in one folder, images in the imgs folder

CodePudding user response:

reference 1/f, the sky wave response:
why do you want to use the position: absolute; Absolute positioning,

Let the icon is displayed in the input box on the right side, deleted or does not display, also don't know what happened,

CodePudding user response:

The screenshots look not to come out, it's convenient for direct messages me, or code to stick a little

CodePudding user response:

reference 5 floor ChewQion reply:
Quote: reference 1/f, the sky wave response:
why do you want to use the position: absolute; Absolute positioning,

Let the icon is displayed in the input box on the right side, deleted or does not display, also don't know what happened,

You change the background image to the background color display does not show
  • Related