Return to Snippet

Revision: 22769
at January 21, 2010 14:21 by landonmiller


Initial Code
//If div isn't empty, display div2.
$('#div').keyup(function () {
  if ($(this).val()) {
	$("#div2:hidden").show();
	$('#div2').addClass('inputclass pageRequired');
  } else {
	$('label[for=test]').hide();
	$('#div2:visible').removeClass('inputclass pageRequired');
	$("#div2:visible").hide()	 
  }
});

Initial URL

                                

Initial Description

                                

Initial Title
Display hidden textfield

Initial Tags
forms, jquery

Initial Language
jQuery