Javascript if/else
Can someone please help me? I am not sure why this is not working. The else portion of the if/else does not execute.

    $.post("_inc/signupform.php", formdata,
			 function(data){
			 console.log(data);
			 	
			if(data.status == 1){
				
				$('#frontpagevalid').append(data.message).show();
				$("#frontpagenameemail").slideUp();
			 	$("#frontpageschoolzip").fadeIn();
			 	$('#userid').attr({value : data.uid});
			
			} else {
			
			$('#frontpagevalid').append(data.message).show();
			
			}
			 
			 
			 }, "json");

Thanks in advance!
Joe


Javascript if/else
===

Can someone please help me? I am not sure why this is not working. The else portion of the if/else does not execute.

    $.post("_inc/signupform.php", formdata,
			 function(data){
			 console.log(data);
			 	
			if(data.status == 1){
				
				$('#frontpagevalid').append(data.message).show();
				$("#frontpagenameemail").slideUp();
			 	$("#frontpageschoolzip").fadeIn();
			 	$('#userid').attr({value : data.uid});
			
			} else {
			
			$('#frontpagevalid').append(data.message).show();
			
			}
			 
			 
			 }, "json");

Thanks in advance!
Joe

