variables in element definition in jquery callback function -
new jquery, can't find solution.
problem: in callback function, want 2 elements fade out. both "a" tags, different ids: 1 id incoming "data", , works fine, other "data" word "plus" appended (this 1 not fade). code have, far:
<script type="text/javascript"> function callback(data, status) { $('a[id = ' + data + ']').fadeout(1000, function() { $('a[id = ' + data + ' plus]').fadeout(1000); }); } </script>
can help? appreciated!
<script type="text/javascript"> function callback(data, status) { $('#' + data).fadeout(1000, function() { $('#' + data + 'plus').fadeout(1000); }); } </script>
Comments
Post a Comment