Jump to content
php.lv forumi
  • 0

Kā ar šādu izsaukt fancybox dialoglodziņu?


Cibiņš

Question

Ilgi nočakarējos tā arī nesapratu kā atraut vaļā fancybox lodziņu ja cilvēks mēģina nosubmitot tukšu formu? :/

 

function validateForm()
{

var searchform=document.forms["srchfrm"]["searchform"].value;
if (searchform==null || searchform=="" || searchform=="Uzošņāt.."){
    alert('Lūdzu ievadiet atslēgvārdu(-s)!');
  return false;
  }
}         <form action="<?php echo $geturl; ?>" method="post" name="srchfrm" onsubmit="return validateForm()">
          <input name="product" type="text" id="searchform" value="Uzošņāt.." />
          <input name="submitsearch" type="submit" value="Submit" id="submit" />
        </form>

 

Uz linku padošanu ta poh elementāri uzklikšķina linku utt bet kad jāvalidē tad nez.. :/

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...