<input name=myfield>You select it with [name=myfield] like this:
<script> value = $('[name=myfield]').val(); // or $('[name=myfield]').change(function{} { alert('it changed'); }); </script>My feeling is that if you already have a name for a field why add an id just to select it.