Closed tornako closed 5 years ago
Hello, how can I get the value of a data-attribute from the input field of the image?
I imagine that with callback features.
onSelect: function(item) { var ep = $(this).attr("data-ep"); },
Thanks!
@tornako using the following code:
onSelect: function(item, listEl, parentEl, newInputEl, inputEl) { var ep = inputEl.attr('data-ep'); },
Thank you very much, it's going great!
Hello, how can I get the value of a data-attribute from the input field of the image?
I imagine that with callback features.
onSelect: function(item) { var ep = $(this).attr("data-ep"); },
Thanks!