I would like to declare a link within a JavaScript <a href="#"></a>
, I have the following information that I send to call:
<script>
var plant = [
{nomb: "ESCUELA 1",
dirc:"CENTRO, 405",
lat:25.52689,lng:-80.674479,
enlc:"http://index.html",
correo: "[email protected]",
telefono: "(452) 1404512",
ciudad: "Lugar 1",
oferta: "Preparatoria",
lic: "Administración, Educación",
pos: "Administración",
online: "Preparatoria"},
];
$(document).ready(function(){
var enlace = plant[indice].nomb;
$("#indic").html(indice);
$(".titulo__plantel").html("Plantel "+plant[indice].nomb);
$(".correo_plantel").html(plant[indice].correo);
$(".telefono__plantel").html(plant[indice].telefono);
$(".direccion__plantel").html(plant[indice].dirc);
$(".ciudad").html(plant[indice].ciudad);
$(".enlc").html(plant[indice].enlc);
$(".oferta").html(plant[indice].oferta);
$(".lic").html(plant[indice].lic);
$(".pos").html(plant[indice].pos);
$(".online").html(plant[indice].online);
</sript>
and I send them to print in a div in html
<div class="content3">
<span class="oferta"></span>
<span class="lic"></span>
<span class="pos"></span>
<span class="online"></span>
</div>
How could you put lic: "Administración, Educación"
a different link, so that they send to different pages when you press it? I need your help, thank you very much!