<script type="text/javascript"> $(function(sent) { alert($('input[name="user"]').val()); }; </script>