Response title
This is preview!
The filterable widget runs the filter a single time during startup to make sure the list of children reflects the value entered in the search input. You can avoid this step by specifying thedata-enhanced="true"
attribute. When set to true, the filterable will assume that you have correctly applied the classui-screen-hidden
to those children that should be initially hidden.
data-enhanced="true"
did nothing for me so perhaps I mis-read it as a potential solution.
However... after operator selects an item from the list view, I add
"ui-screen-hidden" to all items and they hide. If I enter a
new business name in the search box, it correctly offers me suggestions.
The "generated source code" produces the following
(note there is no reference to "data-one='two'"
anywhere. My question is WHY?!
<form> <div id="SidePage"> <a href="#" id="prodCont0" data-value="0" data-role="button" class="crap ui-btn ui-btn-inline product-content">Blurb0(0)</a> <a href="#" id="prodCont1" data-value="1" data-role="button" class="crap ui-btn ui-btn-inline product-content">Blurb1(1)</a> <a href="#" id="prodCont2" data-value="2" data-role="button" class="crap ui-btn ui-btn-inline product-content">Blurb2(2)</a> <a href="#" id="prodCont3" data-value="3" data-role="button" class="crap ui-btn ui-btn-inline product-content">Blurb3(3)</a> <a href="#" id="prodCont4" data-value="4" data-role="button" class="crap ui-btn ui-btn-inline product-content">Blurb4(4)</a> </div> </form>
Info on what I have done to help myself:
I have tested to see if my function is being called twice by inserting
an "alert(1);" - and the alert displays only once.
I can confirm that I have only one "#ProductMain".
I changed the last line of my code to $("#aaa").button() and it still
creates two buttons, except the first one has the jqueryui css layout,
and the second one is the gray ugly html standard button (similar height,
no text label).
Any ideas? (Thanks for reading the post)
( jQuery v2.1.1 and jQuery UI - v1.11.0)
Some of my attempts that have returned empty:// Get the value from a set of radio buttons
$( "input:radio[name=bar]:checked" ).val();
but I don't get a value (I get nothing, not "undefined", not 0, nothing).
My html is as follows:
Yes<input type="radio" name="ProductExtraActive" id="ProductExtraActiveY" value="Y" checked>
No<input type="radio" name="ProductExtraActive" id="ProductExtraActiveN" value="N">
© 2013 jQuery Foundation
Sponsored by and others.