F
find clausen
qqq = GetCookie("whatever");
How do I select a chekbox in a form if qqq = yes
TIA
How do I select a chekbox in a form if qqq = yes
TIA
find said:qqq = GetCookie("whatever");
How do I select a chekbox in a form if qqq = yes
TIA
qqq = GetCookie("whatever");
How do I select a chekbox in a form if qqq = yes
Hi,
var qqq = GetCookie("whatever");
var nCheckbox = document.getElementById( "myCheckbox" );
if ( nCheckbox )
{
nCheckbox.checked = ( qqq == "yes" );
}
find clausen a écrit :
and how do you set cookie ?
before to try to read it ...
SetCookie("whatever", form.whatever.value);
find clausen a écrit :SetCookie("whatever", form.whatever.value);
and this time : what is 'form' ?
if(GetCookie("whatever") && form.whatever) {
if(GetCookie("whatever") != '')
form.whatever.value = GetCookie("whatever");
else alert('no value was saved for \'whatever\' !');
form.whatever.focus();
form.whatever.select();
}
if form is something like :
form = document.forms['myForm'];
and if GetCookie(() returns true/false or a value
find clausen a écrit :SetCookie("whatever", form.whatever.value);
and this time : what is 'form' ?
if(GetCookie("whatever") && form.whatever) {
if(GetCookie("whatever") != '')
form.whatever.value = GetCookie("whatever");
else alert('no value was saved for \'whatever\' !');
form.whatever.focus();
form.whatever.select();
}
if form is something like :
form = document.forms['myForm'];
and if GetCookie(() returns true/false or a value
find said:thanx but I don't understand how it works, the checkbox:
<input type="Checkbox" name="whatever" value="yes" title="whatever">
should there be an ID in the input line ?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.