Bonjour tout le monde ;

J'ai un problème et j ai besoin de votre aide... Quand j'appuie sur le bouton "send", ma popup jquery se ferme ! Peut-être est-ce dû à cause de l'événement "onclick". J'ai besoin que la fenêtre reste ouverte pour valider les champs.

Merci de votre aide. Voici le code :

Code html : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication23.WebForm1" %>
 
<!DOCTYPE html>
 
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <link type="text/css" href="css-js/StyleSheet1.css" rel="stylesheet" />
     <link rel="stylesheet" href="NewFolder1/Style.css" type="text/css" />
    <script type="text/javascript" src="css-js/jquey-1.7.1.min.js"></script>
     <script type="text/javascript" src="css-js/jquey-1.7.1.js"></script>
    <script type="text/javascript" src="css-js/jquery.validate.js"></script>
 
    <script type="text/javascript" src="NewFolder1/jquery.js"></script>
    <script type="text/javascript" src="NewFolder1/custom.js"></script>
 
 
 
     <script>       $("document").ready(function()
       {
           $("#thumb").click(function () {
               $("#ovelay").fadeIn("slow");
               $("#overlay_div").fadeIn("slow");
               
 
           });
           $(".close_button").click(function () {
               $("#overlay").fadeOut("fast");
               $("#overlay_div").fadeOut("fast");
                
           })
            
       });</script>
     <script type="text/javascript" src="css-js/validate.js"></script>
 
 
 
</head>
<body>
 
    <div>
 
        <img src="css-js/66.jpg" alt="" id="thumb"/></div>
       />
<div id ="overlay">
</div>
<div id = "overlay_div" style="background-color:#B5E655;opacity: 0.83;
filter: progid:DXImageTransform.Microsoft.Alpha(Opacity = 67);
/*-ms-filter must come before filter*/
filter: alpha(opacity = 67);
/*INNER ELEMENTS MUST NOT BREAK THIS ELEMENTS BOUNDARIES*/
/*All filters must be placed together*">
 
    <div>
 
 
       <div id="container" style="margin-top:30px ; margin-left:0px"">
      <h1> &nbsp;Contact Me</h1>
      <form id="contact_form" runat="server">
          <div>
              <label for="name" >Name</label>
              <input id="name" type="text" />
              <span id="nameinfo">what's your name?</span>
          </div>
 
 
          <div>
          <label for="pass2">Téléphone</label>
          <input id="pass2" name="pass2" type="password" />
              <span id="pass2info"></span>
              </div>
          <div>
          <div>
              <label for="email">E-mail</label>
              <input id="email" name="email" type="text" />
              <span id="emailinfo">so i can get back to you</span>
          </div>
 
 
 
                <label for="message">what's wanna tell me?</label>
          <textarea id="message" name="message" > </textarea>
 
          </div>
          <div>
              <asp:Button ID="send" runat="server" Text="send"   OnClick="send_Click" />
 
          </div>
      </form>
  </div>
 
    </div>
 
 
 
    <div id = "close_button" class= "close_button"> X </div>
</div>
 
 
 
 
 
</body>
</html>