Variable Visions

jQuery attribute selector text value change

Published Thu. Dec. 27, 2012

There is a lag...but it will replace the text value of an input field if you do not have access to the html.

<script type="text/javascript">       
jQuery(document).ready(function(){
        jQuery('input[name=go]').val('Search');
});
</script>

Keywords:jQuery, .val