Change behavior of jQuery Mobile Listview Filter to filter a custom HTML attribute instead of text
$30-100 USD
En curso
Publicado hace más de 11 años
$30-100 USD
Pagado a la entrega
jQuery Mobile has a Listview Filter built in (see [login to view URL]).
I want the filter changed to filter based on a custom attribute in the <a> tag instead of the text. For example, in the following example, the filter would work on 'Your Text Here'.
<a href="[login to view URL]">Your Text Here</a>
However, I want to use a custom attribute called filter_text.
<a href="[login to view URL]" filter_text="My Filter Information">Your Text Here</a>
Therefore, if a user would type 'info' they would get the link.
I would also accept a solution that filtered on both filter_text AND the text, but the solution must filter on the filter_text attribute.
I believe that the non-minified code can be found here: [login to view URL]
## Deliverables
You will comment out the original functions code and change it so that instead of searching the text of a link (<a href="[[login to view URL]][1]">text</a>) it will search the value of another attribute called filter_text, e.g. <a href="[[login to view URL]][1]" filter_text="dog cat orange space">text</a>.
I want to be able to see the code you changed, so be clear in your comments.
jQuery Mobile has a Listview Filter built in (see [login to view URL]).
I want the filter changed to filter based on a custom attribute in the <a> tag instead of the text. For example, in the following example, the filter would work on 'Your Text Here'.
<a href="[login to view URL]">Your Text Here</a>
However, I want to use a custom attribute called filter_text.
<a href="[login to view URL]" filter_text="My Filter Information">Your Text Here</a>
Therefore, if a user would type 'info' they would get the link.
I would also accept a solution that filtered on both filter_text AND the text, but the solution must filter on the filter_text attribute.
I believe that the non-minified code can be found here: [login to view URL]