I use the Live Search macro in my theme. Is there a simple way to change the button name? I would like to rename the text of the button "go" on "search". Thank you for tips
Browse to:
Confluence Admin | Look and Feel | Custom HTML
In At end of the HEAD, add some JavaScript similar to this:
<script> AJS.toInit(function(){ AJS.$('.plugin_livesearch_buttonbox input').val('Search'); }); </script>
Wow, you're my hero! :) It works fantastic and I'm happy. However, I have a question about this script. Why do I have to write "val", instead write "value"? In the tag <input type="submit" value="$action.getText('livesearch.macro.go')"> but is also "value" write and not "val"!?
Thank you!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We use .val() because we're using the jQuery method .val() to manipulate the DOM.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is obviously a jQuery specific question, but do you know if you can set the value to an image rather than simple text? For example, a magnifying glass image?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.