Skip to main content

Hi,

I am using Nintex Forms 2013 and I am trying to apply custom css(border-color as 'something') through JavaScript towards a people picker control and the CSS is not applied at all. My JS code is as follows:

ApproverID.css('border-color','red !important'); //ApproverID is the JavaScript ClientID of the picker control

I have applied the same piece of custom CSS towards other controls like dropdown(choice control), date, single & multi-line text boxes without any issues.

Any help is grealty appreciated.

Thanks

different control have different DOM model so the same syntax need not apply to all of then.

for people control something like this should work

NWF$('#'+ApproverID).closest('.nf-filler-control-border')[0].style.border='2px solid red'

Hi Marian,

It worked, thanks a lot. You saved me a lot of time.

Thanks again.


Reply