HTML5 Peaky framework jQuery Mobile Form-7.7

Source: Internet
Author: User

Form
HTML5 text box

Slider

Toggle

 

 

 


HTML5
<! Doctype html>
<Html>
<Head>
<Meta name = "viewport" content = "width = device-width, initial-scale = 1"/>
<Meta http-equiv = "Content-type" content = "text/html; charset = UTF-8">
<Title> PhoneGap </title>


<Link rel = "stylesheet" href = "jquery.mobile-1.3.1.css">

<Script type = "text/javascript" charset = "UTF-8" src = "jquery-1.9.0.min.js"> </script>
<Script type = "text/javascript" charset = "UTF-8" src = "jquery. mobile-1.3.1.js"> </script>
</Head>
<Body>
<Section>
<Div> common text box </div>
<Div>
<Input type = "password" name = "password" id = "password" value = ""/>
</Div>
</Section>

<Section>
<Div> HTML5 text box </div>
<Div>
<Input type = "search" name = "search" id = "search" value = ""/>
</Div>
</Section>

<Section>
<Div> Slider </div>
<Div>
<Input type = "range" name = "slider" id = "range" value = "2" min = "0" max = "10"/>
</Div>
</Section>

<Section>
<Div> Toggle </div>
<Div data-role = "fieldcontain">
<Section name = "toggle" id = "toggle" data-role = "toggle">
<Option value = "off"> disable </option>
<Option value = "on"> enable </option>
</Section>
</Div>
</Section>

</Body>
</Html>

 

 

Radio button

Check button

 

 

<! Doctype html>
<Html>
<Head>
<Meta name = "viewport" content = "width = device-width, initial-scale = 1"/>
<Meta http-equiv = "Content-type" content = "text/html; charset = UTF-8">
<Title> PhoneGap </title>


<Link rel = "stylesheet" href = "jquery.mobile-1.3.1.css">

<Script type = "text/javascript" charset = "UTF-8" src = "jquery-1.9.0.min.js"> </script>
<Script type = "text/javascript" charset = "UTF-8" src = "jquery. mobile-1.3.1.js"> </script>
</Head>
<Body>
<Fieldset data-role = "controlgroup">
<Legend> select age </legend>
<Input type = "radio" name = "radio-1" id = "radio-1" value = "any" checked = "checked"/>
<Label for = "radio-1"> unlimited </label>
<Input type = "radio" name = "radio-1" id = "radio-2" value = "16-22"/>
<Label for = "radio-2"> 16-22 </label>
<Input type = "radio" name = "radio-1" id = "radio-3" value = "23-30"/>
<Label for = "radio-3"> 23-30 </label>
<Input type = "radio" name = "radio-1" id = "radio-4" value = "31-40"/>
<Label for = "radio-4"> 31-40 </label>

</Fieldset>

<Fieldset data-role = "controlgroup">
<Legend> select </legend>
<Input type = "checkbox" name = "checkbox-1" id = "checkbox-1" value = "Music"/>
<Label for = "checkbox-4"> music </label>
<Input type = "checkbox" name = "checkbox-1" id = "checkbox-2" value = "movie"/>
<Label for = "checkbox-4"> movie </label>
</Fieldset>

<Fieldset data-role = "controlgroup" data-type = "horizontal">
<Legend> select Weibo </legend>
<Input type = "radio" name = "radio-1" id = "radio-1" value = "any" checked = "checked"/>
<Label for = "radio-1"> Weibo </label>
<Input type = "radio" name = "radio-1" id = "radio-2" value = "fans"/>
<Label for = "radio-2"> fans </label>
<Input type = "radio" name = "radio-1" id = "radio-3" value = "follow"/>
<Label for = "radio-3"> follow </label>
</Fieldset>
</Body>
</Html>

 

 

Disable the specified disabled <option name = "movie" disabled> movie </option>

 

Multi-select <select name = "select" id = "select" data-native-menu = "true" multiple>

 
 

Placeholder data-placeholder <option value = "" data-placeholder = "true"> select </option>

 
 


More DATA <select name = "select" id = "select" data-native-menu = "false" data-icon = "gear" data-inline = "true">

 

 

HTML5
<! Doctype html>
<Html>
<Head>
<Meta name = "viewport" content = "width = device-width, initial-scale = 1"/>
<Meta http-equiv = "Content-type" content = "text/html; charset = UTF-8">
<Title> PhoneGap </title>


<Link rel = "stylesheet" href = "jquery.mobile-1.3.1.css">

<Script type = "text/javascript" charset = "UTF-8" src = "jquery-1.9.0.min.js"> </script>
<Script type = "text/javascript" charset = "UTF-8" src = "jquery. mobile-1.3.1.js"> </script>
</Head>
<Body>
<Div data-role = "controlgroup">
<Label for = "select" class = "select"> select interest </label>
<Select name = "select" id = "select" data-native-menu = "true" multiple>
<Option value = "" data-placeholder = "true"> select </option>
<Optgroup label = "Entertainment"/>
<Option name = "movie" disabled> movie </option>
<Option name = "Sports"> sports </option>
<Optgroup label = "style"/>
<Option name = "Tourism"> tourism </option>
</Select>

<Label for = "select" class = "select" data-theme = "B"> operation </label>
<Select name = "select" id = "select" data-native-menu = "false" data-icon = "gear" data-inline = "true">
<Option value = "1"> edit user </option>
<Option value = "2"> delete a user </option>
</Select>
</Div>

</Body>
</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.