Jump to content



Welcome to KnowledgeSutra - Dear Guest , Please Register here to get Your own website. - Ask a Question / Express Opinion / Reply w/o Sign-Up!
- - - - -

Help With Search Code


No replies to this topic

#1 kifak

    Newbie

  • Kontributors
  • Pip
  • 1 posts

Posted 15 November 2010 - 07:25 PM

hi !
i have a code of search , by regions and categories and key word. and this code is this below
function verif_formulaire2()
{

if(document.form2.searchmoteur.value == '') {
alert('Veuillez entrer un mot-clé!');
document.form2.searchmoteur.focus();
return false;
}
if(document.form2.regionmoteur.value == '') {
alert('Veuillez entrer votre region!');
document.form2.regionmoteur.focus();
return false;
}
if(document.form2.categoriemoteur.value == '') {
alert('Veuillez entrer votre catégorie!');
document.form2.categoriemoteur.focus();
return false;
}
}
//-->
i need help for this option to search by key word , i dont want option come false , and i want if i dont put anything in key word the search will search all what i have choossed by region and categories.
i have deleted this code of search by key word but its the same , the search necissite that i must give a key word. pls i want the search give me all without key word.
thx




Reply to this topic


This post will need approval from a moderator before this post is shown.

  


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users