Automatically prompts jquery plug-in the mailbox-practice. failed product

Source: Internet
Author: User

Many SNS websites have email registration functions. Refer to the technical process to trigger the focus keyup and suffix mousedown events.

The basic matching process can be completed.CodeIn case of an incorrect user selection, many SNS sites need to be manually deleted and selected separately.

I will write a focus replacement function.

 

It was found during the test.

After the two controls are triggered, the value is modified at the same time.

 

The cause has not been clarified. After that, the $ this pointer problem was debugged. No error was found.

I was puzzled. I thought it was only after playing the game. It turned out to be

Mailwrap. BIND ('mousedown ',Function(){
$This. Val (selectval );
});

Mailwrap object. It is bound to both controls. $ this contains all references to this function.

At the same time, I have a little more understanding of the plug-in mechanism. Write thisArticleThe error is recorded.

Failed product retention: http://files.cnblogs.com/noyobo/JQuery.Automatch.rar

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.