instead of using , is it possible to use and then script it using javascript or jquery such
And if the HTML code has identical multiple inputs like this one below:-
Expanding on @treeface's answer, the Jquery code (current version 1.8.0) would be:
$('input[type=text]').click(function() {
$(this).parent(".item")
.find('input[type=file]')
.trigger('click');
});
$('input[type=file]').change(function() {
$(this).parent(".item")
.find('input[type=text]')
.val($(this).val());
});
Do take note between $parents() and $parent() in jQuery. Try it out @ http://jsfiddle.net/afxDC/