Using div background image as link using jQuery -
I have placed the background image in the logo in a div
I want to use it div as a link using jquery
// jQuery code
$ ( '# Logo') .bund ('click', function () {window.location = "index.php"});
Neither cursor: indicator
shows and no link works,
thanks gene
< / Div>
Be sure to wrap your code in this way:
$ (function () {$ ('# logo'). Bind ('click', function) {window.location = "index.php"})}};
Comments
Post a Comment