Click here to Skip to main content
15,860,943 members
Home / Discussions / JavaScript
   

JavaScript

 
AnswerRe: How to include random password in email text message Pin
freezers4-Dec-19 6:42
freezers4-Dec-19 6:42 
AnswerRe: How to include random password in email text message Pin
F-ES Sitecore3-Dec-19 22:56
professionalF-ES Sitecore3-Dec-19 22:56 
GeneralRe: How to include random password in email text message Pin
freezers4-Dec-19 6:42
freezers4-Dec-19 6:42 
QuestionJavascript: indicate when item in a list clicked? Pin
Xarzu30-Nov-19 2:11
Xarzu30-Nov-19 2:11 
QuestionRe: Javascript: indicate when item in a list clicked? Pin
Richard MacCutchan30-Nov-19 4:37
mveRichard MacCutchan30-Nov-19 4:37 
AnswerRe: Javascript: indicate when item in a list clicked? Pin
Member 1469087415-Dec-19 23:21
Member 1469087415-Dec-19 23:21 
Questionre: Highlight all the fields Pin
Member 1466767925-Nov-19 5:27
Member 1466767925-Nov-19 5:27 
AnswerRe: re: Highlight all the fields Pin
jkirkerx25-Nov-19 8:11
professionaljkirkerx25-Nov-19 8:11 
To highlight a row of what? What I mean by this is that it depends on how you setup the HTML. If you setup HTML that can be modified in a 1 liner in JavaScript and CSS, then my example would work easy. It really depends on how you designed the HTML.

I would imagine that you just create a class in CSS to create the visual effect you need, then add that class to each element that needs to be highlighted.

These elements could have a master element wrapper, in which you would add a new CSS visual effect, that would highlight all the child elements.
<div class="wrapper">
  <div class="element">1</div>
  <div class="element">2</div>
</div>
Something like this would add the class. Not tested, just off the top of my head
if (field.entered == 1 && field.pcnt_staged != '100%') {
  let wrapper = document.getElementByClassName('wrapper');
  if (wrapper) {
    wrapper.classList.add('red-all');
  }
}
<div class="wrapper red-all">
  <div class="element">1</div>
  <div class="element">2</div>
</div>
In css I think it would be, master element select all child divs within the master.
.red-all > .element {
  color: red;
}
If it ain't broke don't fix it
Discover my world at jkirkerx.com

GeneralRe: re: Highlight all the fields Pin
Member 1466767925-Nov-19 11:30
Member 1466767925-Nov-19 11:30 
GeneralRe: re: Highlight all the fields Pin
Member 1466767925-Nov-19 13:02
Member 1466767925-Nov-19 13:02 
QuestionJavaScript Question that doesn't make since. Pin
Member 1466141319-Nov-19 12:07
Member 1466141319-Nov-19 12:07 
AnswerRe: JavaScript Question that doesn't make since. Pin
Afzaal Ahmad Zeeshan19-Nov-19 16:58
professionalAfzaal Ahmad Zeeshan19-Nov-19 16:58 
QuestionHow can I avoid the phenomenon of asynchronous code using promises and async/await? Pin
Simos Sigma17-Nov-19 2:38
Simos Sigma17-Nov-19 2:38 
AnswerRe: How can I avoid the phenomenon of asynchronous code using promises and async/await? Pin
Nathan Minier18-Nov-19 1:35
professionalNathan Minier18-Nov-19 1:35 
AnswerRe: How can I avoid the phenomenon of asynchronous code using promises and async/await? Pin
Richard Deeming18-Nov-19 7:47
mveRichard Deeming18-Nov-19 7:47 
Questionclient's windows login name Pin
kishor kumar S H16-Nov-19 23:47
kishor kumar S H16-Nov-19 23:47 
AnswerRe: client's windows login name Pin
Eddy Vluggen17-Nov-19 0:41
professionalEddy Vluggen17-Nov-19 0:41 
AnswerRe: client's windows login name Pin
Nathan Minier18-Nov-19 1:40
professionalNathan Minier18-Nov-19 1:40 
GeneralRe: client's windows login name Pin
kishor kumar S H18-Nov-19 21:49
kishor kumar S H18-Nov-19 21:49 
GeneralRe: client's windows login name Pin
Nathan Minier19-Nov-19 0:45
professionalNathan Minier19-Nov-19 0:45 
GeneralRe: client's windows login name Pin
kishor kumar S H23-Nov-19 17:54
kishor kumar S H23-Nov-19 17:54 
Question!!Please Help!! Student Needs Help It Shows me exercise 2 is correct but exercise 1 is not defined JS assign 3 and 13 Pin
Member 1465076510-Nov-19 11:20
Member 1465076510-Nov-19 11:20 
AnswerRe: !!Please Help!! Student Needs Help It Shows me exercise 2 is correct but exercise 1 is not defined JS assign 3 and 13 Pin
Richard MacCutchan10-Nov-19 22:23
mveRichard MacCutchan10-Nov-19 22:23 
QuestionGetting this following error: compare.js:1 Uncaught Error: Cannot find module 'ember' Pin
simpledeveloper5-Nov-19 9:26
simpledeveloper5-Nov-19 9:26 
SuggestionRe: Getting this following error: compare.js:1 Uncaught Error: Cannot find module 'ember' Pin
jkirkerx5-Nov-19 11:47
professionaljkirkerx5-Nov-19 11:47 

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.