Mobile phone End-to-province/city linkage, end-to-province/city Linkage

Source: Internet
Author: User

Mobile phone End-to-province/city linkage, end-to-province/city Linkage

The plug-in used is LArea.

Usage

<link href="~/Assets/js/5iweb2016073010/css/LArea.css" rel="stylesheet" type="text/css" />
    <script src="~/Assets/js/5iweb2016073010/js/LAreaData1.js"></script>    <script src="~/Assets/js/5iweb2016073010/js/LAreaData2.js"></script>    <script src="~/Assets/js/5iweb2016073010/js/LArea.js"></script>
   <input  type="text" value="" placeholder=""  id="txt_area" >                    <input type="hidden" id="hd_area"/>
Var area1 = new LArea (); area1.init ({'trigger': '# txt_area', // trigger the Selection control text box, after selection, the name attribute is output to the location 'valueto ':' # hd_area '. // After selection, the id attribute is output to the location 'keys': {id: 'id', name: 'name'}, // bind the relevant field id of the data source to the value attribute of valueTo. Output name corresponds to the value attribute of the trigger and output 'type': 1, // data source type 'data': LAreaData // data source });

Problem: When you click input, the software disk is displayed by default, overlapping with the province/city selector popped up by the plug-in.

Solution:

$ ("# Txt_area"). focus (function (){
Document. activeElement. blur ();
});

Or

<inputtype="text" value="" placeholder=""  id="txt_area" onfocus="this.blur();"/>

Plugin address http://www.5iweb.com.cn/page-useful-effects/723.html

Related Article

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.