Hi if am submit the query i got undefined value for this method... any one can tell how to validate this array validation.?
Html:
<SELECT NAME="Members[]" id="Members[]" SIZE="8" MULTIPLE="" STYLE="clear:right; float:none;" onDblClick="objForm.Users.transferFrom('Members[]');" class="list-box-user" >
//JS
<script>
$("#inform").click(function() {
var user = $('#Members[]').val(), error;
// var locations = $('#Members').val();
//alert(locations);
var ajaxUrl = 'includes/validation.php?valid=useradd& '&members=' + user;
$.ajax({
type: "POST",
url: ajaxUrl,
data: "",
dataType: 'json',
success: function(msg) {
//alert(msg);
if (msg != "")
{
$(".error").html("");
$(".err").attr("style", "");
$.each(msg, function(key, value) {
if (value != "") {
<!-- $("#" + key).attr("style", "border:1px solid #09668E;");-->
$("#"+key).attr("style","border:1px solid #660000;");
$("#User_" + key).html(value);
}
});
}
else
{
$("#users").submit();
}
}
});
return false;
});
</script>