选择的jQuery插件返回’Null’

我正在使用Chosen for jQuery并且文件夹字段返回null,但是当我查看页面的源时,会给出值。 我无法弄清楚我做错了什么,我的代码如下:

对于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; }     
New Lead
Info

Phone:
Email:

Have You Contacted This Lead? Yes No

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

This Lead Came From: Big select box... etc.

Notes
Create New Lead?

inheritance人表格行动:

 $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")); } } }