Re: Pre filled search text box
My bad. What happens with apple's search field is obviously a little sophisticated. But for usability, if the field remains empty and you click elsewhere on the page instead of searching, the field returns to a default value (ie. it will return to saying 'Search' if left empty).
onFocus means the item is active
(in this case it will remove value of box) onFocus="this.value='';"
onBlur means the item is not active
(will return a value back into box if it is left empty) onBlur="if(this.value=='') this.value='{$lng.lbl_my_text}';"
__________________
Doms
kube v4.1.9
|