I have two inputs, when I automatically click they become readonly, I'm doing so:
<script>
$(document).on('click', '#outros,#txtOutros', function() {
$('#outros').attr('readonly', true);
$('#txtOutros').attr('readonly', true);
});
</script>
But I want you to click on the input # others only it readonly and vice versa.