-1

I want make a div clickable - so that it will show a panel to select the language of the website. I don't want a <select>, I want do it with a div.

I tried searching it on the internet but I don't now exactly how to find it.

Can anyone help me please?

ADyson
  • 51,527
  • 13
  • 48
  • 61

3 Answers3

0

You can use jquery animations to perform what you want to perform as click events can trigger movement. Research a little bit on that and you should be able to get what you want. You can also do it with a form input list selector (that could actually be a much better otion).

Tripduc
  • 31
  • 1
  • 10
0

Try to check the click on your DIV, giving it an id: <div id="yourDivId">

$('#yourDivId').on('click', function(){
    (...) \\ do something
})
Paulo Ramos
  • 193
  • 6
0

You can use HTML attribute onclick like

 <div onclick="href='www.mysite.com'">Click me</div>

Example below

#myDiv{
cursor:pointer;
}
<div id="myDiv" onclick="location.href='https://stackoverflow.com';">Click me</div>