snipt

Ctrl+h for KB shortcuts

JavaScript

jQuery Wildcard

1
2
3
4
5
$("[id$='txtcomPagerAlpha']")  //ENDS With

$("[id^='txtcomPagerAlpha']")  //STARTS With

$("[id*='txtcomPagerAlpha']") //CONTAINS
https://snipt.net/embed/51370e6b1fc4743a2125c867dab25864/
/raw/51370e6b1fc4743a2125c867dab25864/
51370e6b1fc4743a2125c867dab25864
js
JavaScript
5
2019-07-22T15:14:45
True
False
False
Apr 01, 2014 at 11:40 AM
/api/public/snipt/126495/
jquery-wildcard
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="nx">$</span><span class="p">(</span><span class="s2">&quot;[id$=&#39;txtcomPagerAlpha&#39;]&quot;</span><span class="p">)</span> <span class="c1">//ENDS With</span> </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a><span class="nx">$</span><span class="p">(</span><span class="s2">&quot;[id^=&#39;txtcomPagerAlpha&#39;]&quot;</span><span class="p">)</span> <span class="c1">//STARTS With</span> </span><span id="L-4"><a name="L-4"></a> </span><span id="L-5"><a name="L-5"></a><span class="nx">$</span><span class="p">(</span><span class="s2">&quot;[id*=&#39;txtcomPagerAlpha&#39;]&quot;</span><span class="p">)</span> <span class="c1">//CONTAINS</span> </span></pre></div> </td></tr></table>
jquery, wildcard