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
Post a Comment