Click here to Skip to main content
14,297,442 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.
 
JokePerfecting your company's Mission Statement Pin
Cornelius Henning8-Dec-17 6:50
professionalCornelius Henning8-Dec-17 6:50 
PraiseRe: Perfecting your company's Mission Statement Pin
CPallini8-Dec-17 11:08
mveCPallini8-Dec-17 11:08 
GeneralArgh. Javascript ID tags Pin
Marc Clifton8-Dec-17 6:16
protectorMarc Clifton8-Dec-17 6:16 
GeneralRe: Argh. Javascript ID tags Pin
Jeremy Falcon8-Dec-17 6:30
professionalJeremy Falcon8-Dec-17 6:30 
GeneralRe: Argh. Javascript ID tags Pin
Marc Clifton8-Dec-17 7:45
protectorMarc Clifton8-Dec-17 7:45 
GeneralRe: Argh. Javascript ID tags Pin
Jeremy Falcon8-Dec-17 7:48
professionalJeremy Falcon8-Dec-17 7:48 
GeneralRe: Argh. Javascript ID tags Pin
Mycroft Holmes9-Dec-17 0:28
memberMycroft Holmes9-Dec-17 0:28 
GeneralRe: Argh. Javascript ID tags Pin
Jeremy Falcon8-Dec-17 6:55
professionalJeremy Falcon8-Dec-17 6:55 
Ok, I did some recon and found out it uses the DOM to populate the control. So, to do the something similar via the DOM it would be more like this with data attributes...
<div id="tree">
  <ul>
    <li id="table1-1" data-realid="1">Table 1 Foo</li>
    <li id="table1-2" data-realid="2">Table 1 Bar</li>
    <li id="table2-1" data-realid="1">Table 2 Foo</li>
    <li id="table2-2" data-realid="2">Table 2 Bar</li>
  </ul>
</div>
And then with jQuery you can retrieve data attributes as such...
$(element).data('realid');

Jeremy Falcon

GeneralRe: Argh. Javascript ID tags Pin
kmoorevs8-Dec-17 7:41
memberkmoorevs8-Dec-17 7:41 
GeneralRe: Argh. Javascript ID tags Pin
Marc Clifton8-Dec-17 7:47
protectorMarc Clifton8-Dec-17 7:47 
GeneralRe: Argh. Javascript ID tags Pin
Jörgen Andersson8-Dec-17 8:44
protectorJörgen Andersson8-Dec-17 8:44 
GeneralRe: Argh. Javascript ID tags Pin
Slacker0078-Dec-17 8:17
professionalSlacker0078-Dec-17 8:17 
GeneralRe: Argh. Javascript ID tags Pin
ZurdoDev8-Dec-17 8:19
professionalZurdoDev8-Dec-17 8:19 
GeneralThat Linux praise?...I take at least part of it back. Pin
dandy728-Dec-17 6:01
memberdandy728-Dec-17 6:01 
GeneralRe: That Linux praise?...I take at least part of it back. Pin
OriginalGriff8-Dec-17 6:20
protectorOriginalGriff8-Dec-17 6:20 
GeneralRe: That Linux praise?...I take at least part of it back. Pin
pkfox8-Dec-17 6:22
professionalpkfox8-Dec-17 6:22 
GeneralRe: That Linux praise?...I take at least part of it back. Pin
madwilliamflint8-Dec-17 11:03
membermadwilliamflint8-Dec-17 11:03 
GeneralRe: That Linux praise?...I take at least part of it back. Pin
Cornelius Henning8-Dec-17 6:56
professionalCornelius Henning8-Dec-17 6:56 
GeneralRe: That Linux praise?...I take at least part of it back. Pin
Daniel Wilianto11-Dec-17 16:33
memberDaniel Wilianto11-Dec-17 16:33 
GeneralRe: That Linux praise?...I take at least part of it back. Pin
lopatir8-Dec-17 7:44
memberlopatir8-Dec-17 7:44 
GeneralRe: That Linux praise?...I take at least part of it back. Pin
dandy728-Dec-17 11:35
memberdandy728-Dec-17 11:35 
GeneralRe: That Linux praise?...I take at least part of it back. Pin
Nelek8-Dec-17 14:10
protectorNelek8-Dec-17 14:10 
GeneralRe: That Linux praise?...I take at least part of it back. Pin
lopatir8-Dec-17 20:51
memberlopatir8-Dec-17 20:51 
GeneralRe: That Linux praise?...I take at least part of it back. Pin
Munchies_Matt8-Dec-17 22:48
memberMunchies_Matt8-Dec-17 22:48 
GeneralRe: That Linux praise?...I take at least part of it back. Pin
Munchies_Matt8-Dec-17 22:48
memberMunchies_Matt8-Dec-17 22:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.