Accustomed to CS carriage return operator, the BS webpage form is also carriage return 666, bs666

Source: Internet
Author: User

Accustomed to CS carriage return operator, the BS webpage form is also carriage return 666, bs666

1. In the first step, you need to press ENTER input or other form buttons in the form to give a clsss, for example, the following $ ('. cls ');

2. Step 2: copy the following code and complete the last automatic submission: $ ("# savedown"). click ();

3. Make sure to select all input boxes. Otherwise, the operation will be inconvenient.

Certificate ----------------------------------------------------------------------------------------------------------------------------------------

$ ("Input"). focus (function (){
This. select ();
});

Certificate -----------------------------------------------------------------------------------------------------------------------------------------

<Input style = "width: 208px;" id = "onlyshipid" class = "form-control cls" type = "text" onblur = "clearorchangeNum ()">

<Input style = "width: 208px;" id = "onlyshipid" class = "form-control cls" type = "text" onblur = "clearorchangeNum ()">

$ (Function (){
$ ("Input"). focus (function (){
This. select ();
});
$ ('# Goodsnameid'). focus ();
Var $ indium = $ ('. cls ');
$ Indium. bind ('keylow', function (e ){
Var key = e. which;
If (key = 13 ){
E. preventDefault ();
Var nxtIdx = $ indium. index (this) + 1;
If ($ ('. cls'). size () = nxtIdx ){
$ ("# Savedown"). click ();
$ (". Cls: eq (" + 0 + ")"). focus ();
$ (". Cls: eq (" + 0 + ")"). select ();
} Else {
$ (". Cls: eq (" + nxtIdx + ")"). focus ();
$ (". Cls: eq (" + nxtIdx + ")"). select ();

}
}
});
});

 

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.