使用jquery和asp.net代码在asp.net中显示/隐藏div [英] Show / hide div in asp.net using jquery and asp.net code

查看:78
本文介绍了使用jquery和asp.net代码在asp.net中显示/隐藏div的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hi


i想要在按钮点击之前显示div id =first,当用户点击搜索按钮时,想要显示其他div =second与其他信息并隐藏第一个div暂时重定向到其他页面



如何使用asp.net代码和jquery如何做到这一点



和makemytrip一样,当你搜索酒店时,它显示搜索然后重定向到酒店列表页面



我想要的确如此



怎么做



问候

maulik shah

解决方案

您可以尝试以下内容。



 


( #yourButton)点击(函数(){

( #第一)隐藏();

hi
i want to show a div id="first" before button click and when user clicks search button, want to show other div ="second" with other info and hide first div for time being till redirect to other page

how to do this using asp.net code behind and jquery

same like in makemytrip, when u search hotel , it shows searching and then redirects to hotel list page

I want exactly that way

how to do this

regards
maulik shah

解决方案

You may try something is as below.


("#yourButton").click(function(){


("#first").hide();


这篇关于使用jquery和asp.net代码在asp.net中显示/隐藏div的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆