I'm a bit of a rookie in jquery, to see if you can help me. I'm making a page to show weather forecast maps according to the forecast time. I want to combine mouseover and click to view these maps. I have 2 buttons. I want that when pressing a button the maps are seen passing the mouse over the hour (with mouseover), and when pressing another button they are visualized only doing click in the hour (with click). For now it works only the first time, by clicking on the "No click" button, I always visualize the maps with mouseover, still pressing the "With click" button again.
The html buttons are
input type="button" name="boton" id="boton" value="Con click"
input type="button" name="boton2" id="boton2" value="Sin click"
y el código de jquery es
$("#boton2").on("click",function(){
$('.class_seleccion_pronostico').mouseover(function() {
........aqui va el codigo para pasar los mapas....
});
});
$("#boton").on("click",function(){
$('.class_seleccion_pronostico').click(function() {
...........aqui va el mismo código que arriba.....
});
});
Thank you very much. Greetings.