Skip to content

Instantly share code, notes, and snippets.

@isramv
Last active June 14, 2022 23:37

Revisions

  1. isramv renamed this gist Sep 22, 2014. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. isramv created this gist Sep 22, 2014.
    10 changes: 10 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    $('input#edit-keys-1').blur(function(){
    tmpval = $(this).val();
    if(tmpval == '') {
    $(this).addClass('empty');
    $(this).removeClass('not-empty');
    } else {
    $(this).addClass('not-empty');
    $(this).removeClass('empty');
    }
    });