Questions tagged as 'data-attribute'

1
answer

Function toggle menu does not work with data-attributes

I'm trying to make a function that causes the buttons to only change the data-attributes of the corresponding value menu, however, it does not display an error in the console, but it does not work either: function menu(){ var doc =...
asked by 09.11.2017 / 19:13
1
answer

How to change the value of a custom attribute?

I want to change the value of a custom attr via jquery, but without success. Here is the code below: $("#botao-01").click(function() { $("#img-screen").attr("data-image","img/bauru-02.jpg"); }); <div id="img-screen" class="tile"...
asked by 03.04.2018 / 14:58
1
answer

Pass value to input within table

The problem is this: I have a input product search, I type it filters and adds to the "items" table; in the "items" table has input that filters the services with value, and then I give    split () I take the value and try to pass...
asked by 29.11.2017 / 04:34
3
answers

Get date attribute of last element from a list

Good morning, I am putting together a system that when I click a button I add a <li> to the last row record, however every <li> has numeric data-id for differentiation, that is, I would need to know the last data-id...
asked by 10.04.2018 / 14:06
1
answer

AppendTo is not a function / Shopping cart using jQuery [closed]

Hello I'm doing my first online store project but I'm missing out on completing some tasks that I do not know at this point how to solve. Below is what I need to do: How to show the cart (which will be hidden) when the first item is inser...
asked by 13.03.2018 / 13:51