jquery-mobile/experiments/api-viewer/docs/button-selector/index.html
scottjehl b11a45f615 switched up padding and margins on content div. Now it will get 15px padding, unless its a fullscreen page.
Inset listviews have no margin now, and regular listviews have -15px margins. Also, collapsibles now have no padding.

Updated HTML to remove ui-body classes for content divs, to match these changes.

Fixes #161
2010-10-12 15:50:28 -04:00

66 lines
No EOL
2 KiB
HTML

<!DOCTYPE html>
<html lang='en'><head><meta http-equiv='content-type' content='text/html; charset=UTF-8' /></head><body>
<div data-role="page">
<div data-role="header">
<h1>:button Selector</h1>
</div>
<div data-role="content" data-theme="c" id="button1">
<h2 class="jq-clearfix roundTop section-title">
<span class="name">button</span> selector</h2>
<div class=" entry-details">
<h4 class="name">
<span class="versionAdded">version added: <a href="/version/1.0/">1.0</a></span>jQuery(':button')</h4>
<p class="desc"><strong>Description: </strong>Selects all button elements and elements of type button.</p>
<h3>Example:</h3>
<div id="entry-examples" class="entry-examples"><div id="example-0">
<h4><span class="desc">Finds all button inputs.</span></h4>
<pre><code class="example demo-code">&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;style&gt;
textarea { height:45px; }
&lt;/style&gt;
&lt;script src="http://code.jquery.com/jquery-latest.js"&gt;&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;form&gt;
&lt;input type="button" value="Input Button"/&gt;
&lt;input type="checkbox" /&gt;
&lt;input type="file" /&gt;
&lt;input type="hidden" /&gt;
&lt;input type="image" /&gt;
&lt;input type="password" /&gt;
&lt;input type="radio" /&gt;
&lt;input type="reset" /&gt;
&lt;input type="submit" /&gt;
&lt;input type="text" /&gt;
&lt;select&gt;&lt;option&gt;Option&lt;option/&gt;&lt;/select&gt;
&lt;textarea&gt;&lt;/textarea&gt;
&lt;button&gt;Button&lt;/button&gt;
&lt;/form&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;script&gt;
var input = $(":button").css({background:"yellow", border:"3px red solid"});
$("div").text("For this type jQuery found " + input.length + ".")
.css("color", "red");
$("form").submit(function () { return false; }); // so it won't submit
&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;</code></pre>
<h4>Demo:</h4>
<div class="demo code-demo"></div>
</div></div>
</div>
</div>
</div>
</body></html>