Hello, I have simplified my page and here what I have:
<html>
<head>
<meta http-equiv="content-type" content="text/plain; charset=utf-8" />
<title>Title</title>
<style>
a {
text-decoration: none;
}
div select {
margin-top: 20px;
display: block;
}
</style>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
<script>
$('div').click(function(){
return false;
});
</script>
</head>
<body>
<a href="#############">
<img src="preview_image" />
<div>
<input type="text" value="" />
<select>
<option value="default" selected>choose</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
</select>
</div>
</a>
</body>
</html>
The main idea is that I have a "A" hyperlink tag, inside which is included DIV with INPUT and SELECT inside.
What my goal is: when I put text into INPUT and when I select option from SELECT - the parent A hyperlink should not trigger.
I have tried to fix it with "return false", but looks this is not helping.
Also I have some problem in Mozilla FF: SELECT is not choosing any value whatever you choose there in the list. It is always left as "choose"
UPD
the only problem left is the SELECT behavior inside A-hyperlink in FireFox. I have FF version 3.6.3 And the behavior is when I select option from SELECT it is not set as chosen. In all the rest browsers seem to work correctly.