Skip to main content

I have a Hyperlink control on the form. I want to clear both the 'Web Address' and the 'Text to display' field using JavaScript.

The control settings are as below -

I amable to clear the 'Web Address' field using -

NWF$('#' + fldSiteAddress).val('').trigger('change'); 

However, no matter what I try, I am just not able to clear the 'Text to display' field.

Any help will be appreciated.

Thanks.

following should work

NWF$('#'+fldSiteAddress).val("");
NWF$('#'+fldSiteAddress).siblings('input').val("");

Thanks Marian,

This is wonderful. A perfect solution.

I appreciate.


good news.

please mark the answer correct


Reply