Joke Collection Website - Blessing messages - How to use jquery idcode.js verification code
How to use jquery idcode.js verification code
This JS first quotes:
& ltlink href = " Scripts/idcode/jquery . idcode . CSS " rel = " style sheet " type = " text/CSS "/& gt;
& ltscript src = " Scripts/idcode/jquery . idcode . js " type = " text/JavaScript " & gt; & lt/script & gt;
Then load it:
& ltscript type = " text/JavaScript " & gt;
$ (document). ready(function () {
$ . idcode . set code();
});
& lt/script & gt;
Then go to its JS file and specify the ID of the input verification code box.
Var setting = {
e:“idcode”,
codeType:{ name:' follow ',len: 4},
Code prompt: "Refresh?" ,
InputID: 'Txtidcode'// This is the text box ID of your page input verification code.
};
Then the page elements:
& ltlabel class ="lblVerification "> verification code
& ltinput type = " text " id = " Txtidcode " class = " txt verification "/& gt。
& ltspan id="idcode " >& lt/span>。
Finally, JS calls: Varisby = $. idcode.validatecode (); Returns true or false. So you can verify
- Previous article:What does it mean when my traffic is said to be intra-regional traffic?
- Next article:Mother's birthday greetings to her adult son.
- Related articles
- Apple 14 wechat is holding down the conversation, will you record the message prompt?
- My girlfriend cried to comfort me.
- What if Google camera needs to be reloaded every time it is turned on?
- What can be used to pay for mobile phone bills?
- Classic connotation joke
- How do hospitals pay with medical insurance cards?
- Will the bank inform you when the car loan will be repaid?
- If snails have love, why did Ye Xixi die?
- How to make an ex-boyfriend or ex-girlfriend forget you?
- Design of SMS Alarm for Old People's Fall Prevention