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



RECENT ARTICLES:

PUBLISHED ON 06.1.23arrowBuilding a JavaScript Metronome using Open AI Chat GPT

PUBLISHED ON 05.15.23arrowHow Do I Remove Footage Gaps in Adobe Premiere

TAGS

CATEGORIES