Αναζήτηση στην υποστήριξη

Προσοχή στις απάτες! Δεν θα σας ζητήσουμε ποτέ να καλέσετε ή να στείλετε μήνυμα σε κάποιον αριθμό τηλεφώνου ή να μοιραστείτε προσωπικά δεδομένα. Αναφέρετε τυχόν ύποπτη δραστηριότητα μέσω της επιλογής «Αναφορά κατάχρησης».

Μάθετε περισσότερα

Click and change events on checkbox elements which are not appended into document tree

  • 2 απαντήσεις
  • 2 έχουν αυτό το πρόβλημα
  • 10 προβολές
  • Τελευταία απάντηση από demoniqus

more options

I created fragment of html-code with a radio-group. But I didn't append this fragment into document tree because I need to configure this fragment using click event of first radio-element BEFORE I will show it to users. I use JQuery to set click handler. After it I call this handler through input.click(). Handler works but the property CHECKED in radio-element doesn't change until radio-element is not appended into document tree. Only FF behaves so - other browsers (IE, Chrome, Safari) change this property. When I appended radio-element into document tree then FF could change this property. Can You explain to me why FF behaves so, please?

PS Checkbox-elements behave also PSS Attachment contains an image of example

Best regards.

I created fragment of html-code with a radio-group. But I didn't append this fragment into document tree because I need to configure this fragment using click event of first radio-element BEFORE I will show it to users. I use JQuery to set click handler. After it I call this handler through input.click(). Handler works but the property CHECKED in radio-element doesn't change until radio-element is not appended into document tree. Only FF behaves so - other browsers (IE, Chrome, Safari) change this property. When I appended radio-element into document tree then FF could change this property. Can You explain to me why FF behaves so, please? PS Checkbox-elements behave also PSS Attachment contains an image of example Best regards.

Όλες οι απαντήσεις (2)

more options

Maybe best to ask about this on Stackoverflow.

more options

I asked on Stackoverflow already. But I think that developers can answer me quicker