jquery-mobile-button

How to hide delete button in textbox that shows up when you type anything in jQuery mobile

自古美人都是妖i 提交于 2020-12-15 05:19:22
问题 I want to remove delete button in textbox that shows up when you type anything in jQuery mobile. When I click reset button textbox is clear but delete button is not hidden. Here is jsfiddle. html <div id="dvSearch" data-role="fieldcontain" class="ui-hide-label" data-theme="a"> <div class="clsNote">Entrer le nom du membre que vous desirez contacter</div> <label id="lblSearch" for="txtsearch">Search</label> <input type="search" id="txtsearch" data-i18n="[placeholder]attr.placeholderSearch;"

How to hide delete button in textbox that shows up when you type anything in jQuery mobile

坚强是说给别人听的谎言 提交于 2020-12-15 05:18:10
问题 I want to remove delete button in textbox that shows up when you type anything in jQuery mobile. When I click reset button textbox is clear but delete button is not hidden. Here is jsfiddle. html <div id="dvSearch" data-role="fieldcontain" class="ui-hide-label" data-theme="a"> <div class="clsNote">Entrer le nom du membre que vous desirez contacter</div> <label id="lblSearch" for="txtsearch">Search</label> <input type="search" id="txtsearch" data-i18n="[placeholder]attr.placeholderSearch;"

json2htmled jQuery mobile button inside table td looks old, has old button inside new one after button()/refresh

浪子不回头ぞ 提交于 2019-12-12 19:31:23
问题 I'm using this transform to build a jQuery mobile button inside of a regular table 'td': { "tag":"button", "type":"button", "id":"${idPrefix}-delete", "data-role":"button", "data-mini":"true", "data-icon":"delete", "html":"Delete" } but it renders as an old HTML button. After I manually refresh the button, it looks like a mobile button with the icon, but the old button is "minified" inside of it. How can this be fixed? missing ::before ? I just compared it to a normal looking mobile button,

jquerymobile numerical keypad phonegap

橙三吉。 提交于 2019-12-12 08:58:11
问题 I'm using jquerymobile, but can't get the keypad to only show numeric keys (including decimals). Only default keypad is shown.I'm using phonegap, I use <input type="number"> the problem is that the numpad is shown but when i use input {-webkit-user-modify: read-write-plaintext-only;} the default keypad is only shown. Any suggestion would be great. Thankx. 回答1: use $('#<element-id>').focus(); 来源: https://stackoverflow.com/questions/16909603/jquerymobile-numerical-keypad-phonegap

Icon only back button jQuery Mobile

只愿长相守 提交于 2019-12-12 02:27:56
问题 Within my jQuery Mobile page I programmatically set up my back button to appear on every page that is not the first page by using the following code <div data-role="page" data-add-back-btn="true" id="anid"> what this does is create a back button that have text in it saying back. however I do not want that I want the icon only. How can this be done in jQuery Mobile 回答1: Working example: http://jsfiddle.net/Gajotres/ygmWD/ $(document).on('pagebeforeshow', function () { $.mobile.activePage.find(

jQuery Mobile best practice - panel button, back button, or both [closed]

陌路散爱 提交于 2019-12-11 23:23:31
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 6 years ago . I'm creating a mobile app targeted for iPad Mini. I have a panel that slides out from the left with navigation menu. I also have the need for a back button in the header. What is the best practice for buttons in the header? I need a back button at certain times in the flow of

How to remove button text responsively in JQuery Mobile

人盡茶涼 提交于 2019-12-11 02:35:57
问题 I'm very new to Jquery & jquery mobile. I'm resizing a button so it's responsive to window size. To be more specific, i'm changing it from iconpos="left" to iconpos="notext" to remove the text on small windows. I found the following function, which works for me. $(window).on("throttledresize", function() { var smallButtons = $(window).width() <= 480; $('#menu_toggle').toggleClass('ui-btn-icon-notext', smallButtons); $('#menu_toggle').toggleClass('ui-btn-icon-left', !smallButtons); }); But it

jquerymobile numerical keypad phonegap

冷暖自知 提交于 2019-12-04 14:17:34
I'm using jquerymobile, but can't get the keypad to only show numeric keys (including decimals). Only default keypad is shown.I'm using phonegap, I use <input type="number"> the problem is that the numpad is shown but when i use input {-webkit-user-modify: read-write-plaintext-only;} the default keypad is only shown. Any suggestion would be great. Thankx. use $('#<element-id>').focus(); 来源: https://stackoverflow.com/questions/16909603/jquerymobile-numerical-keypad-phonegap

Extra container appearing around button in jQuery Mobile 1.4.2

不羁的心 提交于 2019-12-04 02:15:24
问题 I have a <button> in jQuery Mobile 1.4.2 that's being shown with an extra <div> container appearing around it. I did not have this problem with jQM 1.3.2. This is the code I'm using ( note that the problem doesn't appear in jsFiddle ): <div data-theme="a" data-role="page"> <div role="main" class="ui-content"> <button id="test1" data-inline="true" data-mini="true" title="test1">Test 1</button> </div> </div> And this is the fiddle that shows the extra div inserted by jQM: Demo With Extra Div

JQuery Mobile Custom Theme Buttons

眉间皱痕 提交于 2019-12-02 02:34:58
问题 I just started using a jquery mobile custom theme instead of one of the defaults. Lots of issues...but the current one is that dynamically created buttons don't work as expected. I have some dynamic html I'm injecting via $("#container").append(...) <div> <a class="view-it" data-role="button" href="">View</a> </div> Because it's dynamic, I need to do $("*[data-role='button']").button(); to get it to initialize. Although my button now looks like a button, the anchor instead still looks like a