jquery pass input value to invisible inputfield
Let's say I ha开发者_如何学编程ve #input1 and #input2. When I click to #input1 I'm receiving value in #input1 but the question is how can I recieve this value in #input1 by clicking on #input2?
$(function() {
$('#input1').jEntropy({
'rSize' : '5',
'pool' : '12345',
'message' : 'hello.',
'disable' : true
});
});
$(function() {
$('#input1').jEntropy({
'rSize' : '5',
'pool' : '12345',
'message' : 'hello.',
'disable' : true
});
$('#input2').click(function(e){
$('#input1').focus();
});
});
精彩评论