<input id="e-1" type="text"/>
<input id="e-2" type="text"/>
<button id="go">go</button>
This is input validate:
$(document).ready(function(){
var code ="";
var c1="";
var c2="";
$('input#e-1').bind('blur keyup',function() {
c1 = "Error 400 - " + $('input#e-1').val();
});
$('input#e-2').bind('blur keyup',function() {
c2 = "Error 404 - " + $('input#e-2').val();
});
});
How to collect values from all Inputs in a var code =""; and then display this value by clicking a button to <textarea></textarea>?
I made a mistake, and how to make different signatures for each line, but not everywhere Error 400? check updated code
Take a look at the jQuery data feature:
http://api.jquery.com/jQuery.data/
Html:
JsBin:
http://jsbin.com/ubomeq/
http://jsbin.com/ubomeq/edit#source