开发者

changing css property of target page on submit

I have an aspx page with one form submitting to itself. In the form there are 2 divs with various input fields, text, etc. Div1 is hidden via css by default. There is a submit button which postbacks to same page. How do I get the button to alter the css display value to "block" so div1 is now visible?

I can get it to the point where onclick it momentarily displays but because it needs to reload the page it defaults to hidden. Is 开发者_如何学运维there a way I can alter the inline css of the target page after submit?

info and controlstext field, etc.

So upon submit, this page should render with div1 visible by changing the inline css.

What's the best approach?

Thanks.


Use the same ASP code that processes whatever form you're submitting to also alter the CSS of the page.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜