Announcement

Collapse
No announcement yet.

How to clear text value when radio is selected

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    Last edited by Steph; 06-23-2016, 09:43 AM.

  • #2
    Create an ajax event for the radio using the OnClick event:

    place something like

    PHP Code:
    if ( {radio} ==)
    {
           {
    myfield1} = '';

    Regards

    as the

    Comment


    • #3
      kafecadm, how come the ajax onChange event doesn't work for this?

      Comment


      • #4
        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

        Comment


        • #5
          awesome, thank you kafecadmsempa....what was that name again? :-)

          Comment


          • #6
            kafecadmSAMA-CHAN-SEMPAI =P

            LOL Regards

            Comment


            • #7
              Originally posted by kafecadm View Post
              Create an ajax event for the radio using the OnClick event:

              place something like

              PHP Code:
              if ( {radio} ==)
              {
              {
              myfield1} = '';

              Regards

              as the

              thanks for the feedback

              Comment

              Working...
              X