javascript - get text area and text field data - jquery -


i have 2 text areas in page as;

<input type="text" id="a1"/> <textarea id="b2"></textarea> <a id="button">button</a> 

when user click button link, want alert data entered in a1 , b2.

how can this?? here there demo

thanks in advance...:)

blasteralfred

  $(document).ready(function() {     $('#button').click(function(e) {       e.preventdefault();       alert($('#a1').val());       alert($('#b2').val());     });   }); 

Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -