My favorites | Sign in
Project Home Downloads Issues
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 585: close nyromodal div with javascript function help!
1 person starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


 
Reported by joegi...@gmail.com, Oct 4, 2012
I have a div contening a form with one field and a validate button which call a javascript function 
if the field is empty then i show a alert to the user
else close the nyromodal div --> but i don't succeed in doing it

code :

<script>
   function valid1(){
      if(document.getElementById('field1').value=="") {
         alert('empty field1');
      }else{
         ??? --> close nyromodal div
      }
   }
</script> 

<div id="mydiv">
   <input type="text" id="field1" size="20">
   <input type="button" onclick="valid1()">
</div>

<a href="#mydiv">show form</a>

Powered by Google Project Hosting