onClick event is not working in safari browser but it working Fine in IE/FF/Chrome/Opera browser?
<p>Hello expert i got one issue and i need your help.</p>

<p>I am using javascript onClick event it's working good with IE/FF/Chrome browser but it not working for safari browser, I have wasted my 2 days on it but not able to resolve it so i need your help it too urgent for me.</p>

<p>The code which i am using are as follows:</p>

<pre><code>heartSelectHandler = {
    clickCount : 0,
    action : function(select)
    {
        heartSelectHandler.clickCount++;
        if(heartSelectHandler.clickCount%2 == 0)
        {
            selectedValue = select.options[select.selectedIndex].value;
            heartSelectHandler.check(selectedValue);
        }
    },
    blur : function() // needed for proper behaviour
    {
        if(heartSelectHandler.clickCount%2 != 0)
        {
            heartSelectHandler.clickCount--;
        }
    },
    check : function(value)
    {
       alert('Changed! -&gt; ' + value);
    }
}

&lt;select onclick="javascript:heartSelectHandler.action(this);" onblur="javascript:heartSelectHandler.blur()" id="heart" data-role="none"&gt;
    &lt;?php for ($i = 20; $i &lt;= 150; $i++): ?&gt;
    &lt;option  value="&lt;?php echo $i; ?&gt;"&gt;&lt;?php echo $i; ?&gt;&lt;/option&gt;
    &lt;?php endfor; ?&gt;
&lt;/select&gt;
</code></pre>
