Changing form button value - Quick and dirty fix
- Posted By:realworks
- Category:Search, Forms
- Type:JavaScript
- Views:402
A quick and dirty way to change the value of a button.
Add this snippet to the end of your page.tpl and edit the '#####' with the element id, such as 'edit-submit'.
Snippet:
<script type="text/javascript">
<!--
button = document.getElementById("######");
if (button) button.value="Search";
//-->
</script>
Ops!
Sorry, I had the wrong code filter applied to the field so the code wasn't displaying.
As you can see, the code is there now.
Where is the snippet?