Actually a question. What to do in this case? It is necessary that by clicking on the address the following form opens: enter image description here

Clicking on the cross, it closed.

Tried to do this:

$(".mapclick").click(function() { $(".testblock").Show(); }); 

  • are you not confusing classes (".class") and id ('# idi')? - strangeqargo September

1 answer 1

As an option:

 $('.open').click(function() { $('.form').show('slow'); }); $('.close').click(function() { $('.form').hide('slow'); }); 
 .form { width: 300px; height: 200px; background: silver; border: 1px solid #222; position: relative; display: none; } .close { position: absolute; top: 5px; right: 5px; } 
 <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <a class="open" href="#">open</a> <div class="form"> <a class="close" href="#">X</a> </div>