Variable Visions

Articles jQuery jQuery-attribute-selector-text-value-change


tutorials - jQuery and Web-Development.

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>


Tag(s): jQuery, .val