Click here to Skip to main content
15,114,004 members
Home / Discussions / JavaScript
   

JavaScript

 
QuestionHow to give unique ids to changing divs? Pin
Tarun Rathore 18-May-19 10:48
MemberTarun Rathore 18-May-19 10:48 
AnswerRe: How to give unique ids to changing divs? Pin
ZurdoDev21-May-19 3:04
professionalZurdoDev21-May-19 3:04 
QuestionUsing XML Pin
V.28-Apr-19 21:57
professionalV.28-Apr-19 21:57 
SuggestionRe: Using XML Pin
Richard MacCutchan28-Apr-19 22:56
mveRichard MacCutchan28-Apr-19 22:56 
GeneralRe: Using XML Pin
V.28-Apr-19 23:21
professionalV.28-Apr-19 23:21 
GeneralRe: Using XML Pin
Richard MacCutchan28-Apr-19 23:25
mveRichard MacCutchan28-Apr-19 23:25 
GeneralRe: Using XML Pin
V.28-Apr-19 23:38
professionalV.28-Apr-19 23:38 
AnswerRe: Using XML Pin
Graham Breach29-Apr-19 3:35
MemberGraham Breach29-Apr-19 3:35 
Modern versions of Javascript have querySelector() and querySelectorAll(), which are a lot easier to use than traversing the tree - check your documentation (and document object) to see if you have them. You can basically pick out nodes using CSS selectors.

As an alternative there is XPath - it uses expressions to drill down into the tree, just not in the familiar CSS-way that querySelector and querySelectorAll do it.

The querySelector/querySelectorAll functions are available in all the modern browsers, but it looks like XPath is in everything apart from Internet Explorer.
GeneralRe: Using XML Pin
V.30-Apr-19 2:38
professionalV.30-Apr-19 2:38 
Question<SOLVED> Why is my validation script not working? Pin
samflex26-Apr-19 5:20
Membersamflex26-Apr-19 5:20 
AnswerRe: Why is my validation script not working? Pin
Richard Deeming26-Apr-19 5:31
mveRichard Deeming26-Apr-19 5:31 
GeneralRe: Why is my validation script not working? Pin
samflex26-Apr-19 5:45
Membersamflex26-Apr-19 5:45 
GeneralRe: Why is my validation script not working? Pin
Richard Deeming26-Apr-19 5:49
mveRichard Deeming26-Apr-19 5:49 
GeneralRe: Why is my validation script not working? Pin
samflex26-Apr-19 6:04
Membersamflex26-Apr-19 6:04 
Questionjavascript Pin
Member 1418486022-Apr-19 0:48
MemberMember 1418486022-Apr-19 0:48 
AnswerRe: javascript Pin
W Balboos, GHB15-May-19 5:08
mveW Balboos, GHB15-May-19 5:08 
AnswerRe: javascript Pin
Shraddha_Patel5-Nov-19 18:30
MemberShraddha_Patel5-Nov-19 18:30 
QuestionAdding Blank pages to PDF when requirements met Pin
Member 142140864-Apr-19 16:03
MemberMember 142140864-Apr-19 16:03 
QuestionRe: Adding Blank pages to PDF when requirements met Pin
Richard MacCutchan4-Apr-19 18:57
mveRichard MacCutchan4-Apr-19 18:57 
AnswerRe: Adding Blank pages to PDF when requirements met Pin
Member 142140864-Apr-19 19:07
MemberMember 142140864-Apr-19 19:07 
GeneralRe: Adding Blank pages to PDF when requirements met Pin
Richard MacCutchan5-Apr-19 6:10
mveRichard MacCutchan5-Apr-19 6:10 
Questionprint array json in dinamic table <html> Pin
serenimus29-Mar-19 12:15
Memberserenimus29-Mar-19 12:15 
AnswerRe: print array json in dinamic table <html> Pin
Richard MacCutchan29-Mar-19 23:29
mveRichard MacCutchan29-Mar-19 23:29 
GeneralRe: print array json in dinamic table <html> Pin
serenimus29-Mar-19 23:50
Memberserenimus29-Mar-19 23:50 
GeneralRe: print array json in dinamic table <html> Pin
Richard MacCutchan30-Mar-19 0:28
mveRichard MacCutchan30-Mar-19 0:28 

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.