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
Rajneesh Chaubey
NA
2.9k
234k
How to hide and show div using jquery?
Jan 15 2018 12:56 PM
Hi, I have two buttons on aspx page named 'show employee' and 'show customers' and I have two gridviews on my page.
Here is the code:-
<form id=
"form1"
runat=
"server"
>
<div id=
"grdemployee"
>
<asp:GridView ID=
"GridView1"
runat=
"server"
>
</asp:GridView>
</div>
<div id=
"grdcustomer"
>
<asp:GridView ID=
"GridView2"
runat=
"server"
>
</asp:GridView>
</div>
<asp:Button ID=
"btnemployee"
runat=
"server"
Text=
"Show Employee"
/>
<asp:Button ID=
"btncustomer"
runat=
"server"
Text=
"Show Customer"
/>
</form>
How do I create jquery code such that when I click show employee button , the employee gridview gets visible and If I click show customer button ,customer gridview should be visible and employee grdview got hide and vice versa.
suppose employee gridview is present and then I click show customer then it should hide employee grvw and make customer gridview visible.
Reply
Answers (
1
)
subtraction using jquery
Chart using jquery Chart.js