("#id option:selected").text();
Wednesday, 28 November 2012
Jquery Mobile: Time picker
<div data-role="fieldcontain">
<fieldset data-role="controlgroup" data-type="horizontal">
<legend>Select From Time:</legend>
<select
name="select-choice-month" id="fromtime">
<option>Hrs</option>
<option value="1">00</option>
<option value="2">01</option>
<option value="3">02</option>
<option value="4">03</option>
<option value="5">04</option>
<option value="6">05</option>
<option value="7">06</option>
<option value="8">07</option>
<option value="9">08</option>
<option value="10">09</option>
<option value="11">10</option>
<option value="12">11</option>
<option value="13">12</option>
<option value="14">13</option>
<option value="15">14</option>
<option value="16">15</option>
<option value="17">16</option>
<option value="18">17</option>
<option value="19">18</option>
<option value="20">19</option>
<option value="21">20</option>
<option value="22">21</option>
<option value="23">22</option>
<option value="24">23</option>
</select>
<select
name="select-choice-day" id="select-choice-day">
<option>Min</option>
<option value="1">:00</option>
<option value="1">:05</option>
<option value="1">:10</option>
<option value="1">:15</option>
<option value="1">:20</option>
<option value="1">:25</option>
<option value="1">:30</option>
<option value="1">:35</option>
<option value="1">:40</option>
<option value="1">:45</option>
<option value="1">:50</option>
<option value="1">:55</option>
</select>
</fieldset>
</div>
Wednesday, 21 November 2012
Saturday, 17 November 2012
Jquery Mobile: .focus()
http://jquerymobile.com/demos/1.0a2/experiments/api-viewer/docs/focus/index.html
Jquery Mobile: Disable Buttons in jQuery Mobile
var clicked = false;
$('#myButton').click(function() {
if(clicked === false) {
$(this).addClass('ui-disabled');
clicked = true;
alert('Button is now disabled');
}
});
$('#enableButton').click(function() {
$('#myButton').removeClass('ui-disabled');
clicked = false;
});
HTML
<div data-role="page" id="home">
<div data-role="content">
<a href="#" data-role="button" id="myButton">Click button</a>
<a href="#" data-role="button" id="enableButton">Enable button</a>
</div>
</div>
http://jquerymobile.com/demos/1.0.1/docs/forms/docs-forms.html
Jquery Mobile: How to create Toast Message
$("<div style='background-color: white' class='ui-loader ui-overlay-shadow ui-body-e ui-corner-all'><h1>Enter From Location</h1></div>").css({ "display": "block", "opacity": 0.96, "top": $(window).scrollTop() + 300 }) .appendTo( $.mobile.pageContainer )
.delay( 1500 ) .fadeOut( 400, function(){ $(this).remove();
});
android: How to open android adb from command prompt?
In the command prompt Go to this path or set as classpath F:\PROJECTS\ANDROID\android-sdk_r10-windows\android-sdk-windows\platform-tools
Then type
adb shell
u will see:
#
Type
# sqlite3 /data/data/com.yourpackage/databases/yourdbname
Subscribe to:
Posts (Atom)