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

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -