Append value with each function
<html> <head> <script type='text/javascript' src='js/jquery-1.3.2.js'></script> <script type='text/javascript'> $(document).ready( function() { var $append = " Marx"; $(['A', 'B', 'C', 'D']) .each( function() { $('ul').append("<li>" + this + $append + "</li>"); } ); } ); </script> </head> <body> <ul> </ul> </body> </html>