I would like to add a second attribute to this javascript to change the color of the href to white.
$("#linkImagen").attr('href', "https://meet.jit.si/" + text);
$(document).ready(function () {
$('#linkImagen').click(function () {
$(".chatboxtextarea").val("Quiero tener una videollamada contigo. Hacer click aquí: https://meet.jit.si/" + text);
$("#enviarMensaje").click();
})
})
Either style or color like this...
const text = 'lorem ipsum...';
$("#linkImagen")
.attr('href', "https://meet.jit.si/" + text)
.attr('color', "#FFF")
.attr('style', "color: #FFF")
body {
background-color: #000
}
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<a href="#" id="linkImagen">FOOOOO</a>