Выбранный плагин jQuery возвращает «ноль»

Я использую Chosen для jQuery, и поле папки возвращает ноль, однако, когда я смотрю на источник страницы, значения даются. Я могу'Чтобы понять, что я делаю неправильно, мой код приведен ниже:

Для HTML:

    



Back Office | Home





jQuery(document).ready(function(){
  jQuery(".folderselector").chosen();
  jQuery(".chosenyesno").chosen({disable_search_threshold: 3});
});


    
    

$(function() {
    $( document ).tooltip();
});



body {
    margin-left: 0px;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
}







  
    
    
                                                        
                                
                                    <a href="#" style="padding-right: 8px;">Alex Cross</a>
                                
                            

                            
                                
                                    <a href="/Members/profile.php">PROCapture Home</a>
                                    <a href="/BackOffice/Home.php?doLogout=true">Logout</a>
                                
                            

                        


    
    
    
    
    
      
        
          
            
              Control Panel
              
                <a href="Home.php">Home</a>
                <a href="Manage Leads.php" class="current">Manage Leads</a>
                <a href="Manage Autoresponses.php">Manage Autoresponses</a>
                <a href="My NMVT.php">My NMVT</a>
                <a href="Home.php">Lead Capture Settings</a>
                <a href="Upcoming Appointments.php">Appointments</a>
                <a href="Home.php">Resources</a>
                <a href="Home.php">Referral System</a>
                <a href="Home.php">My Account</a>
                <a href="Contact Support.php">Contact Support</a>
              
            
          
        
        
        
          
          
          
          <span>New Lead</span>
          
          
          
            
            
            
            
            
            
            <span>Info</span>
            
            
            <p class="paragraph_1">Phone:  <br> Email: </p>
            
            
            
            <p class="paragraph_2">Have You Contacted This Lead? 
              Yes
              No
            
             </p>
            
            
              <p class="paragraph_2">
              Put Lead In Folder:  
                                Alexs Folder
                                Aweber Imports
                                Cold Leads
                                Contacted
                                Contacted Once
                                Contacted Twice
                                Family Guy
                                GVO Imports
                                Hot Leads
                                MCA Imports
                                New Leads
                                Not Contacted
                                UPP Leads
                                Visited
                              </p>
            
             
            <p>This Lead Came From: Big select box... etc.</p>
            
            
            
            <span>Notes</span>
            
            
            
            
            
            
            
            
          <span>Create New Lead?</span>
          
          
          
          
          
          
          
          
          
          
          
          
          
          
        
        
      
      
    
    
  
  
  
    
      <p>Copyright © 2012 PROCapture LLC</p>
      <p>Privacy Policy  |  Terms And Conditions</p>
    

  



Вот форма действий:

$currenttime = time();

$editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING'])) {
  $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
}

if($_POST['Notes_Field'] != "") {
if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form")) {
    if (strpos($_POST['Lead_Name'], "'") === false) {
      if (strpos($_POST['Lead_Name'], '"') === false) {
          if (strpos($_POST['Lead_Name'], '#') === false) {
  $insertSQL = sprintf("INSERT INTO Leads (FullName, Email, PhoneNumber, Country, Folder, Notes, `User`, TimeAdded, Contacted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)",
                       GetSQLValueString($_POST['Lead_Name'], "text"),
                       GetSQLValueString($_POST['Email_Field'], "text"),
                       GetSQLValueString($_POST['Phone_Field'], "text"),
                       GetSQLValueString($_POST['Country_Field'], "text"),
                       GetSQLValueString($_POST['Folder'], "text"),
                       GetSQLValueString($_POST['Notes_Field'], "text"),
                       GetSQLValueString($_POST['username_field'], "text"),
                       GetSQLValueString($currenttime, "int"),
                       GetSQLValueString($_POST['contacted_field'], "text"));

  mysql_select_db($database_myBackOfficeConn, $myBackOfficeConn);
  $Result1 = mysql_query($insertSQL, $myBackOfficeConn) or die(mysql_error());

  $insertGoTo = "View Folder.php?Folder=" . $_POST['Folder'] . "";
  header(sprintf("Location: %s", $insertGoTo));
          }
          else{
          header(sprintf("Location: %s", "Error102.php"));
          }
      }
      else{
          header(sprintf("Location: %s", "Error102.php"));
      }
    }
    else {
      header(sprintf("Location: %s", "Error102.php"));
      }
}
}
else {
    if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form")) {
        if (strpos($_POST['Lead_Name'], "'") === false) {
          if (strpos($_POST['Lead_Name'], '"') === false) {
            if (strpos($_POST['Lead_Name'], '#') === false) {
  $insertSQL = sprintf("INSERT INTO Leads (FullName, Email, PhoneNumber, Country, Folder, `User`, TimeAdded, Contacted) VALUES (%s, %s, %s, %s, %s, %s, %s, %s)",
                       GetSQLValueString($_POST['Lead_Name'], "text"),
                       GetSQLValueString($_POST['Email_Field'], "text"),
                       GetSQLValueString($_POST['Phone_Field'], "text"),
                       GetSQLValueString($_POST['Country_Field'], "text"),
                       GetSQLValueString($_POST['Folder'], "text"),
                       GetSQLValueString($_POST['username_field'], "text"),
                       GetSQLValueString($currenttime, "int"),
                       GetSQLValueString($_POST['contacted_field'], "text"));

  mysql_select_db($database_myBackOfficeConn, $myBackOfficeConn);
  $Result1 = mysql_query($insertSQL, $myBackOfficeConn) or die(mysql_error());

  $insertGoTo = "View Folder.php?Folder=" . $_POST['Folder'] . "";
  header(sprintf("Location: %s", $insertGoTo));
            }
            else{
                header(sprintf("Location: %s", "Error102.php"));
                }
           }
           else{
           header(sprintf("Location: %s", "Error102.php"));
           }
        }
        else {
             header(sprintf("Location: %s", "Error102.php"));
             }
    }
}

Ответы на вопрос(0)

Ваш ответ на вопрос