In an asp.net user control I have a button:
<asp:Button ID="addButton" runat="server" Text="Add" OnClientClick="return function()".
I had written jquery code to hide a control( validationsummary) present in the page inside function().
When I wrote "return function()" it behaved as I expected and the control got hidden. While when I wrote only "function"()" the control got hidden but reappeared. What exactly is the difference between the two?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…