Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">
- $(document).ready(function($) {
- var prods_banco = $('#produtos-do-js li[data-tags*="Esqui Chile"]');
- $( "#produtos-js" ).html("");
- for (var i = 0; i < prods_banco.length; i++) {
- prods_banco.eq(i).clone().appendTo( "#produtos-js" );
- }
- for (var i = 0; i < $("#produtos-js li").length; i++) {
- $("#produtos-js li").eq(i).find("figure").attr("style",$("#produtos-js li").eq(i).find("figure").attr("data-style"));
- }
- filtrarProdutos();
- // $('#fitrar-feriado').on('change', function () {
- // alert('aSome')
- // $('#produtos-js li').hide();
- // if ($(this).val() != "") {
- // $('#produtos-js li[data-tags*="'+$(this).val()+'"]').fadeIn();
- // }
- // else {
- // $('#produtos-js li').fadeIn();
- // }
- // });
- });
- $(document).on('change', '#fitrar-feriado', function(event) {
- // alert( this.value );
- $('#produtos-js li').hide();
- if (this.value != "") {
- $('#produtos-js li[data-tags*="'+this.value +'"]').fadeIn();
- }
- else {
- $('#produtos-js li').fadeIn();
- }
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement