[Koha] JQuery Help

Bernardo Gonzalez Kriegel bgkriegel at gmail.com
Fri Aug 9 00:19:26 NZST 2013


Hi Nicole,

try this (perhaps not work on IE9/8)

$(document).ready(function(){
$("input[id=transl1]").attr("placeholder","Start your search here");
});

or

$(document).ready(function(){
$("input[id=transl1]").attr("value","Start your search here");
$("input[id=transl1]").attr("onfocus","if (this.value=='Start your search
here') this.value='';");
$("input[id=transl1]").attr("onblur","if (this.value=='') this.value='Start
your search here';");
});


Regards,
Bernardo


-- 
Bernardo Gonzalez Kriegel
bgkriegel at gmail.com


On Thu, Aug 8, 2013 at 8:49 AM, Nicole Engard <nengard at gmail.com> wrote:

> Hello all,
>
> I'm wondering if someone could help me with some Jquery.  I wonder if
> we can add the words "Start your search here" to the search box at the
> top of the OPAC main page, a message that gets replaced when patron
> starts to type.
>
> Thanks
> Nicole
> _______________________________________________
> Koha mailing list  http://koha-community.org
> Koha at lists.katipo.co.nz
> http://lists.katipo.co.nz/mailman/listinfo/koha
>


More information about the Koha mailing list