confusion with jquery and getElementById
   
only the first alert is showing.

i have tried only one at a time and still, only if it's before the getElementById does it work...

    $('#t').keyup(function() {

    alert('1');
	
    var a = document.getElementById('t').value;
    
    alert(a);

    }

confusion with jquery and getElementById
===

   
only the first alert is showing.

i have tried only one at a time and still, only if it's before the getElementById does it work...

    $('#t').keyup(function() {

    alert('1');
	
    var a = document.getElementById('t').value;
    
    alert(a);

    }
