样式单击按钮时删除 [英] Styling Remove upon button click

查看:81
本文介绍了样式单击按钮时删除的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨!
在填写我的添加属性"页面字段的必填字段后,单击保存按钮后,我的属性页面出现问题,然后第一次从该页面上删除所有样式,然后再次单击它,保存更改并切换到下一个模块:例如;
当用户单击添加照片"之类的按钮时,我的页面左侧面板中有以下按钮,右侧面板中其相应的字段区域:右侧分别是其各自的控件负载,但第一个模块是"添加属性"是强制性的,没有在其中填充信息,用户无法在任何其他模块上移动
一旦我填写了添加属性"必填字段,然后单击保存"按钮,它就会第一次从我的添加属性"页面中删除所有样式,并且样式变得如此糟糕,请问问题出在哪里如果有人可以帮助您这样的话我会很感激的
添加属性

添加位置

添加成分

添加照片

Price

Hi!
I have a problem with my property page whenever I click on my save button after filling required fields of my ADD Property page fields then first time it removed my all styling from that page then I again click on it and it save my changes and switch to next modules: e.g;
I have following buttons in left panel of my page and their respective fields area on right panel when a user click a button like "Add Photos" then it''s respective control load to it''s right side but first module which is "Add a Property" is compulsory without filling information in it user can''t be able to move on any other module
once I filled "Add Property" required fields and click on save button then it remove all styling from my Add a property page first time and it''s styling becomes so poor please what will be the problem with it If anyone can help out in this case then I''ll be so thankful to that one
Add a Property

Add Location

Add Compositions

Add Photos

Prices

推荐答案

使用jQuery确实很容易,它提供了动态添加和删除CSS样式作为动态更改外观的最常用机制之一.请参阅:
http://en.wikipedia.org/wiki/JQuery [ http://jquery.com/ [ ^ ].

CSS效果和代码示例在这里:
http://api.jquery.com/category/css/ [ http://docs.jquery.com/How_jQuery_Works [ http://docs.jquery.com/Tutorials [ http://docs.jquery.com/Main_Page [
This is really easy to do with jQuery which provides adding and removing CSS styles dynamically as one of the most used mechanism for dynamic changes in appearance. Please see:
http://en.wikipedia.org/wiki/JQuery[^],
http://jquery.com/[^].

The CSS effects and code samples are here:
http://api.jquery.com/category/css/[^].

Learning jQuery is pretty easy. You can start with:
http://docs.jquery.com/How_jQuery_Works[^],
http://docs.jquery.com/Tutorials[^],
http://docs.jquery.com/Main_Page[^].

—SA


这篇关于样式单击按钮时删除的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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