jQuery Mobile: Mini drop down menu

This entry is part 67 of 73 in the series jQuery Mobile

This is a mini drop down menu with a selected option.

The 3rd option is selected in the menu.

This is the so called native drop down menu as building this is the same as building a Javascript drop down menu.

<!DOCTYPE html>
    <link href='http://code.jquery.com/mobile/1.4.1/jquery.mobile-1.4.1.min.css' rel='stylesheet'/>
    <script src='http://code.jquery.com/jquery-1.10.2.min.js'></script>
    <script src='http://code.jquery.com/mobile/1.4.1/jquery.mobile-1.4.1.min.js'></script>
<div data-role='page'>
    <div data-role='header' data-theme='b'>
        <h1>A Mini Drop Down Menu App</h1>

    <div data-role='content'>
            <div class='ui-field-contain'>
                <select name='name1' id='id1' data-mini='true'>
                    <option value='1'>The 1st Option</option>
                    <option value='2'>The 2nd Option</option>
                    <option value='3' selected='selected'>The 3rd Option</option>
                    <option value='4'>The 4th Option</option>

    <div data-role='footer' data-position='fixed'>
        <h4 style='text-align:center;'>I'm the footer</h4>

Try The Code
Series Navigation<< jQuery Mobile: Basic drop down or select menu
jQuery Mobile: Basic slider >>