jsf - Remove CSS Style in <a4j:jsFunction> -


I have a popup panel in which to clear the form data and reset the CSS style when clicking on a graphic image (Which has the image of the pass button).

I am clearing form data by doing this:

    

I want to know two things: 1) Do two events - clearing the form and clearing the CSS style in the same function

2) How to create a CSS For an element to remove property? Currently, there is a color range

  - WebKit-box-shadow: 0 0 5px RGBA (231, 41, 61, 1);  

I need to delete this style

thanks, JSF NB

I will start from the end.

Richts use jQuery so that you can use it. In your case:

  $ ('# inputId'). CSS ('WebKit-Box-Shadow', '');  

Note that if the input id looks like j_idt100: j_idt103 then you need to avoid the colon - j_idt100 \\: j_idt103 , Although, if you have many elements that are to handle it, then it will be easy to give them the same class.

For two things with one task, you can not do this in this case. However, implementing two tasks does not stop you from anything.

You can also put another function there, triggering the "encryption" as well,

  onclick = "clearSelection"); Clear css (); " 

Alternatively you can chain them

   

Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -