Jump to content
php.lv forumi
  • 0

select copy/paste


anonīms

Question

Tātad ir fja, kas uz select change iziet cauri tādam pašam selectam tikai ar citu nosaukumu galā un iedod viņam izvēlēto vērtību. Problēma ir tur, ka šis otrais selects ir zem display:none.

 

http://paste.php.lv/78cbb41422c6adaf80f29cb2aad3ba97?lang=php

 

Problēma ir tāda, ka selected pirmajam nenomainas, tātad otrajam mēs pēc selectotā nevaram dot value. console.log izvada pareizo value, bet tāpat paskatoties display:none elementu, tur ir palicis vecais select.. Ja ir display:block, tad caur konsoli šī pati vērtību došana nostrādā.

 

Cerams, ka sapratāt. kur varētu būt problēma?

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...