<script type="text/javascript"> $(".linkButton").click(function() { $( "input[name*='formInfo']" ).val($(this).attr( "title" )); }); </script>