Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 9th, 2012  |  syntax: None  |  size: 0.33 KB  |  hits: 40  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. jquery issue with pseudo class
  2. $("form").submit(function(event){
  3.  event.preventDefault();
  4.  
  5.  var msg = fx.init();
  6.  alert($(':text').length);
  7.  $('input:text').each(function()
  8.  {
  9.     if ($(this).val == 0)
  10.     {alert('asd');
  11.         msg.append ($(this).attr('id')+" does not have a value <br />");
  12.     }
  13.  
  14.  })
  15.        
  16. if ($(this).val() == 0)