Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

RADIO-Button

Empfohlene Antworten

Veröffentlicht

Ich habe eine Frage, und zwar, wenn ich die Option RADIO Auswähre und das 2. Button als "checked" markiere, macht er auch alles richtig, nur das Problem ist, wenn ich auf darauf klicke (auf eins der buttons), dann checked er alle mit. Normalerweise soll der eine verschwinden und anders erscheinen, wo ich zuletzt angeklickt hatte. Wie heisst die Option, die es richtig macht?

  

<form action = radio method =POST >


	<input type = radio name = radio1 value = RADIO_CHECK >

	<input type = radio name = radio2 value = RADIO_CHECK checked>

	<input type = radio name = radio3 value = RADIO_CHECK >

	<input type = radio name = radio4 value = RADIO_CHECK >

</form>



Das Problem liegt darin, daß alle radio-Buttons, die von einander abhängig sein sollen, den selben Namen haben müssen! Haste scheinbar nur mit dem Value verwechselt, oder?

Probier's mal so:


<form action="radio" method="post" >

<input type="radio" name="radio" value="value1">

<input type="radio" name="radio" value="value2">

<input type="radio" name="radio" value="value3">

</form>

stimmt ganz genau, es funktioniert,

habe gar nicht darauf geachtet.. vielen Dank!

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.