javascript - Stop "filterablebeforefilter" from firing twice -


Is it possible to stop this phenomenon from firing twice? If I type in one of two search fields (Searchon / Searchtoos), the event is removed twice ...

  $ (function () {$ ("# SearchOne, #searchTwo ") .on (" filterablebeforefilter ", function (e) // ....  

HTML

  & lt; div id = "DivOne"> 
  • ID = "search-on" data-roll = "listview" data-inset = "correct" data-filter = "right" data-filter-placeholder = "search1 ..." & Lt; / ul & gt; & lt; div / div & gt; div id = "divTwo" & gt; & lt; ul id = "searchTwo" data-role = "list view" data-inset = " Correct "data-fill
  • "right" data-filter-placeholder = "search2 ..." & lt; / ul & gt; & lt; / div & gt; P>

    is not directly answering your question, but what can you do,

    The selector can tie in:

    $ ("search" input). ("Filterbill filter", function (e)

    Then both the CSS class Set Elds in Input Fi

      & lt; Input id = "searchOne" class = "searchInput" /> & Lt; Input id = "searchTwo" class = "searchInput" />  

    Comments