Welcome, Guest

Checkbox auf Checked prüfen
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Checkbox auf Checked prüfen

Checkbox auf Checked prüfen 2 years, 10 months ago #7080

Hallo,
ich habe folgendes Problem:
Ich möchte den Wert eines Textfeldes (as_vor_nachname) bei angeklickter Checkbox in ein anderes Textfeld (bv_vor_nachname) übertragen. Wenn die Checkbox wieder deaktiviert wird, soll die Textbox (bv_vor_nachname) wieder geleert werden.
Wie kann ich die Checkbox checked/unchecked abfragen? Mit elemet.checked oder ff_getElementByName('bv_vor_nachname').checked funktioniert es nur im Validierungsscript.

function ff_bv_identisch_mit_as_action(element, action)
{
    switch (action) {
        case 'click':
            wert_as_vor_nachname = ff_getElementByName('as_vor_nachname').value;
            if ([b]??? Wenn Checkbox angeklickt ist ???[/b])
              {
                ff_getElementByName('bv_vor_nachname').value = wert_as_vor_nachname;
              }
            else
                ff_getElementByName('bv_vor_nachname').value = '';
            break;
        default:;
    } // switch
} // ff_bv_identisch_mit_as_action


Ich bedanke mich schon einmal vorab.

Gruß
Wolfgang
  • Asterix
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
  • Karma: 0

Re:Checkbox auf Checked prüfen 2 years, 10 months ago #7087

Hi,

schon ff_checked oder ff_anychecked angeguckt (siehe Skripte und dessen Beschreibung zur Verwendung)
  • TheMuffinMan
  • Page:
  • 1
Moderators: TheMuffinMan, ForumSupport
Time to create page: 0.48 seconds

Facebook Discount - 40% Off!

Fans of our Facebook page here are entitled to get a 1-year-subscription for the price of a 6-months!

Steps to take:

  • Become a fan on Facebook (Like) here
  • Purchase a 6-months-subscription from here
  • Write a quick email to This email address is being protected from spambots. You need JavaScript enabled to view it. with your username and prove of your like and we'll upgrade to the 1-year-subscription

Joomla!® Forms Discount - 40% Off!

Already purchased a forms extension from a different vendor but your requirements changed and now you need a forms extension that is capable of more than just the standards? We help you to keep the costs for a change under control: Get a 40% discount on our professional membership plan! -- meaning timely unlimited access to all current and future commercial extensions, breezingforms themes & apps and Joomla!® templates at crosstec.de, including 1 year of support -- without any website limitations -- Just prove that you previously purchased another forms extension for Joomla!® from a different vendor and you are qualified.

Steps to take:

  • Purchase a 1-year-subscription from here
  • Write a quick email to This email address is being protected from spambots. You need JavaScript enabled to view it. with your username and prove of the purchase for the other form vendor and we'll upgrade to the professional-subscription

About

Crosstec GmbH & Co. KG

Bergisch-Gladbacher-Str. 829

51069 Cologne, Germany

Imprint