krishna bharath

krishna bharath

  • NA
  • 12
  • 3.7k

style="cursor:pointer;" is not working in firefox

Nov 25 2014 5:55 AM
Hello friends,
   I am developing an application in MVC 4.0. In that I have a span tag. There is a click event for this span tag. I have set style="cursor:pointer;". Based on the span ID i have written a click event. It is working fine in chrome, IE and Safari. But, in case of firefox it is neither showing the hand icon nor firing the click event. I have declared the span tag as follows
<span id="lblSpan" class="label label-info"style="cursor:pointer;">Span</span> 
the click event for the label I have written as follows
$('#lblSpan').click(function () { 
});
I have also modified my code to cursor:hand; and written onClick="Getdata(this)" in the span tag. But none of them are working. 
Please help me in solving this issue. 
Thanks In Advance,
Krishna Bharath 

Answers (7)