FoxInCloud
container - 2 div same id
Gravatar is a globally recognized avatar based on your email address. container - 2 div same id
  Vincent H.
  All
  Nov 15, 2019 @ 06:33am

Hi Thierry,

I have a container with only a button and a textbox. In the HTML file, we can see 2 "<div " with the same id. This seems to cause selection difficulties for modifying attributes in jQuery.
What do you think ?

Gravatar is a globally recognized avatar based on your email address. re: container - 2 div same id
  Vincent H.
  Vincent H.
  Nov 15, 2019 @ 07:29am

Find !

Valgrid.Dropdown.Init()
THISFORM.wcScriptJSadd(TEXTMERGE([jQuery('#<<THIS.wcID>> button').css('border-radius', '4px 0px 0px 4px');]))

KO

Valgrid.wcHTMLgen()
m.toHTMLgen.cScriptJSadd(TEXTMERGE([jQuery('#<<THIS.wcID>>-dropdown button').css('border-radius', '4px 0px 0px 4px');]))

OK

Question: why ? Thanks in advance

Gravatar is a globally recognized avatar based on your email address. re: container - 2 div same id
  FoxInCloud Support - Thierry N.
  Vincent H.
  Nov 15, 2019 @ 09:47am

I can see no place in FoxInCloud where class="dropdown" is generated.

Please check on you side how this HTML is generated: by FoxinCloud or a custom method.

THIS.wcID gets populated AFTER .Init(); you can use wcID(this) instead.

© 1996-2024