$(document).ready(function() { $("div.somediv").click(function () { window.location(variableName); }); });
introvert wrote:
Hello I'd like to put onclick event on simple div and preform action to go to some variable's url. $(document).ready(function() { $("div.somediv").click(function () { //visit / go to some url }); }); How can I do that? Thanks a lot for help!