Hi,

I am having a problem in how to declare the Script, I made. I want to add the class "inputfield_bordergreen" in the InputText_Field.


Hi Gerald,

Instead "element.classlist.add ... " try

"document.getElementById('" + InputText_Field + "').classList.add("inputfield_bordergreen");"



João Cardoso wrote:

Hi Gerald,

Instead "element.classlist.add ... " try

"document.getElementById('" + InputText_Field + "').classList.add("inputfield_bordergreen");"



Hi Joao, 


I tried your solution but it is not working,




Solution

Hi , 

i think you are doing ajax refresh after the RunJavaScript, due to which class is removing from your screen.

Try to change the sequence ..


Hope this help

Regards,

Rahul

Solution

Rahul Kumar wrote:

Hi , 

i think you are doing ajax refresh after the RunJavaScript, due to which class is removing from your screen.

Try to change the sequence ..


Hope this help

Regards,

Rahul


Hi Rahul,

I tried your suggestion and it works,  I also made a mistake,  instead of "classList", I declared it as "classlist" thank you again 


Regards

Gerald Malaca