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
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
Jaganathan BantheswaranPosted Nov 26, 2014, 5:00 AM
http://jsfiddle.net/Jaganathan/Hb8yj/49/
Joginder BangerPosted Nov 26, 2014, 2:25 AM
krishna bharathPosted Nov 26, 2014, 12:44 AM
Thanks for the support. Actually, I have the span tag inside a textbox. The user can directly give the value in the textbox or when he clicks the span tag inside the textbox a popup with a grid is displayed. There the user selects a value and that value is placed in the textbox. Is there any way to fire this in firefox, other than removing the span from the textbox and placing it outside?
Thanks,
Krishna Bharath.
Jaganathan BantheswaranPosted Nov 25, 2014, 7:53 AM
What are you trying to achieve??
Joginder BangerPosted Nov 25, 2014, 7:52 AM
i can't understand why are used span tag in textbox.
krishna bharathPosted Nov 25, 2014, 7:19 AM
Thanks for the quick reply. Actually, I have a textbox, inside the textbox I am placing the span tag. When I have placed the span outside the textbox, it is working fine. But when am placing it inside the textbox it is not working. Sorry for not saying this in the question.
Jaganathan BantheswaranPosted Nov 25, 2014, 6:40 AM
Check the fiddle here http://jsfiddle.net/Jaganathan/021af95d/