1
I have two inputs, by automatically clicking they become readonly, I am doing so:
<script>
$(document).on('click', '#outros,#txtOutros', function() {
$('#outros').attr('readonly', true);
$('#txtOutros').attr('readonly', true);
});
</script>
But I want that when clicking on the #other input only it gets readonly and vice versa.
What’s happening at the moment?
– PauloHDSousa
@Paulohdsousa when I click on #others e.g. both he and #txtOther get readonly.
– Bia