The only problem is Internet Explorer doesn’t recognize the -9999px for getting rid of the text.
First of all: Remember to backup all files you are going to edit!
Assuming you use the default template, find input.tp.html in assets/snippets/ajaxSearch and replace:
<input id="[+as.submitId+]" type="submit" name="sub" value="[+as.submitText+]" />
with:
<input id="[+as.submitId+]" type="submit" name="sub" value=" " />
or any of the other mentioned possible replacements.
You can also edit the language file, by changing:
$_lang[’as_searchButtonText’] = ’Submit’;
to
$_lang[’as_searchButtonText’] = ’ ’;
I didn’t test anyhing of it, but it should normally work.
Is there a way to change the "Value" of the submit each time I call it?
Where is the value "Go!" coming from? ajaxsearch, modx, etc.
-
☆ A M B ☆
- 24,524 Posts
The AjaxSearch language file (assets/snippes/ajaxsearch/lang).
English
$_lang['as_searchButtonText'] = 'Go!';
Hebrew
$_lang['as_searchButtonText'] = 'סע!';
French
$_lang['as_searchButtonText'] = 'rechercher!';