TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Hrvoje Voda
NA
30
1.2k
Click event function call
Jun 29 2018 6:37 AM
I want to call function on imagebutton click.
this is the code that doesn't work. What's wrong?
<table>
<tr>
<td>
<asp:TextBox ID=
"txtSearch"
runat =
"server"
Visible =
"false"
ClientIDMode=
"Static"
/>
<asp:ImageButton ID=
"imgSearch"
runat=
"server"
OnClientClick =
"return txtSearchAnim();"
ImageUrl=
"../Resources/Images/search2.png"
/>
</td>
</tr>
</table>
<script type=
"text/javascript"
>
function
txtSearchAnim() {
var
x = document.getElementById(
"txtSearch"
);
if
(x.style.display ===
"none"
) {
x.style.display =
"block"
;
}
else
{
x.style.display =
"none"
;
}
$(
'#txtSearch'
).addClass(
'animated bounceOutLeft'
);
}
</script>
Reply
Answers (
1
)
How to display 3D charts by using Java script libraries
How to change HTML Checkboxes to excel Slicer like Control