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 03.3.20arrowWordpress and Woocommerce widget for inserting PHP in Elementor

PUBLISHED ON 09.5.19arrowWordpress and Woocommerce redirect to a product page from categories with a single product

TAGS

CATEGORIES