简体   繁体   中英

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.

使用相同的ASP代码来处理您提交的任何表单,还可以更改页面的CSS。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM