42
rated 0 times
[
45]
[
3]
/ answers: 1 / hits: 29446
/ 12 Years ago, wed, october 24, 2012, 12:00:00
I am trying to set the data-id and/or value of a span from my js file after a click event.
<span id=test></span>
my sudo code js file
nextLink: function(event) {
$('#test').val = 3;
$('#test').data('id') = 'Next';
},
More From » javascript