Click here to Skip to main content
16,004,227 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
dear All,

this code
HTML
$find("<%=mdlComments.BehaviorID%>").show(); 


not working in Chrome

Please help me,
Posted
Updated 22-Jul-12 20:28pm
v4
Comments
Sergey Alexandrovich Kryukov 23-Jul-12 2:31am    
Hm... and what it works on?
--SA
DINESH K MAURYA 23-Jul-12 2:38am    
it work on IE and FireFox.

1 solution

$find is short for .Net's findComponent() function. This is not a standard JavaScript function and is specific to Microsoft's Ajax JavaScript library. $find returns javascript object, and a javascript object normally don't have a method called show()

Try use jquery. If you don't use it yet, you should take a look at it.
If you want to find a html element by id in jQuery, you have to use a #. Like $('#elementId')
and the call show()
JavaScript
$('#elementId').show();
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900