Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to stop generating code on a particular button? [duplicate]

Possible Duplicate:
How can i stop jQuery mobile to apply styles to my specific form elements

I am trying to create an input button for my own use in my web-application thats using jquery framework. But when I see the html code in browser, the framework is generating some wrapper code around that input, how to prevent that code to be not generated?

my code:

<input type="button" value="off" class="toggle-btn" id="toggle-btn1" />

Generated output:

<div data-theme="c" class="ui-btn ui-btn-corner-all ui-shadow ui-btn-up-c">
    <span class="ui-btn-inner ui-btn-corner-all">
        <span class="ui-btn-text">off</span>
    </span>
    <input type="button" id="toggle-btn1" class="toggle-btn ui-btn-hidden" value="off">
</div>
like image 680
coure2011 Avatar asked Mar 06 '11 07:03

coure2011


People also ask

How do I stop code duplication in HTML?

If you want to keep a consistent html structure for the sidebar on each page, use php. You would create a file called sidebar. php, and use the include method to import the same code into each page. If you want to change it later, edit the single sidebar.

How do I stop my keys from double clicking?

Present Code click(function (e) { // Prevent button from double click var isPageValid = Page_ClientValidate(); if (isPageValid) { if (isOperationInProgress == noIndicator) { isOperationInProgress = yesIndicator; } else { e.

How do you avoid multiple buttons clicking at the same time in flutter?

Show activity on this post. call setClickable(false) for all buttons once one of them was clicked. call the next activity with startActivityForResult(...) override onActivityResult(...) and call setClickable(true) for all buttons inside it.

How do you make button click only once in JavaScript?

There are a number of ways to allow only one-click in Javascript: Disable the button after clicking on it. Use a boolean flag to indicate “clicked”, don't process again if this flag is true. Remove the on-click attribute from the button after clicking once.


1 Answers

You want data-role="none"

http://jquerymobile.com/demos/1.0a3/#docs/forms/docs-forms.html

like image 155
naugtur Avatar answered Oct 03 '22 04:10

naugtur