Questions tagged as 'jquery-data'

2
answers

Difference between ".attr ()" and ".data ()"

Note that there is a difference between updating or applying a data attribute using the jQuery method .attr() and the method .data() . The examples below can be seen in this JSFiddle . Apply value to non-existent...
asked by 14.01.2014 / 18:38
1
answer

Catch the attribute value of an image and show it below

I have this code: <script> $(function(){ $(".flipster").flipster({style: 'carousel', enableTouch: true, start: 0, onItemSwitch: function(){ var nomeAlbum = $(this).attr("data-title"); console.log(nomeAlbum); } });...
asked by 02.03.2014 / 21:11
0
answers

Select two elements in each to get start and End of screen input

I have a page where I have a start and end date, and I need to create a validation where I can not create any records if the current time is between these two dates. I have the current date already and I am able to validate with the end time,...
asked by 20.06.2017 / 21:29