How to clear text value when radio is selected

Good day,

I have a Control app with two fields. The first one is a “Text-auto-complete” and the second a Radio displaying a resultset from the database.

I need to clear the first field’s value (value & display) when a user makes a selection in the Radio.

How do I do that?

thanks

Create an ajax event for the radio using the OnClick event:

place something like


if ( {radio} ==1 )
{
       {myfield1} = '';
}

Regards

as the

kafecadm, how come the ajax onChange event doesn’t work for this?

Commonly Radio button and Checkbox uses the onclick event to verify the Cange of a value… onchange is an event commonly used for textboxes and such… check jquery ui documentation about it.

Hope this helps…

Regards

awesome, thank you kafecadmsempa…what was that name again? :slight_smile:

kafecadmSAMA-CHAN-SEMPAI =P

LOL Regards

thanks for the feedback