Click here to Skip to main content
15,127,310 members
Home / Discussions / JavaScript
   

JavaScript

 
GeneralRe: Get image extension Pin
Valentinor8-Nov-20 20:33
MemberValentinor8-Nov-20 20:33 
GeneralRe: Get image extension Pin
Richard Deeming8-Nov-20 22:53
mveRichard Deeming8-Nov-20 22:53 
GeneralRe: Get image extension Pin
Valentinor9-Nov-20 6:43
MemberValentinor9-Nov-20 6:43 
GeneralRe: Get image extension Pin
Richard Deeming9-Nov-20 6:58
mveRichard Deeming9-Nov-20 6:58 
GeneralRe: Get image extension Pin
Valentinor9-Nov-20 11:31
MemberValentinor9-Nov-20 11:31 
GeneralRe: Get image extension Pin
Richard Deeming9-Nov-20 22:36
mveRichard Deeming9-Nov-20 22:36 
GeneralRe: Get image extension Pin
Valentinor10-Nov-20 5:10
MemberValentinor10-Nov-20 5:10 
Questionfunction with OR Pin
Member 1497891029-Oct-20 10:30
MemberMember 1497891029-Oct-20 10:30 
Hello all,

I would like to ask you for a help. I would like make a function for add a class. For interactive map. It means there will be a few segments and ONCLICK will be ADD CLASS.

I used this code:
JavaScript
function myFunction() {
    document.getElementById("praha").className = "show";
  }
It works, but only for 1st segment.


I would like to use something like OR. I tried this:
JavaScript
function myFunction() {
    document.getElementById("praha").className = "show"; ||
    document.getElementById("stredniCechy").className = "show";
  }
or
JavaScript
function myFunction() {
    document.getElementById("praha"||"stredniCechy").className = "show"; 
  }
But both of them doesnt works... Could someone give me an advice and help me with it Smile | :) ?
Many thanks
AnswerRe: function with OR Pin
Richard MacCutchan29-Oct-20 11:41
mveRichard MacCutchan29-Oct-20 11:41 
SuggestionJSMAN - JavaScript Map alternative notation Pin
Member 1497706227-Oct-20 18:35
MemberMember 1497706227-Oct-20 18:35 
GeneralRe: JSMAN - JavaScript Map alternative notation Pin
Sandeep Mewara27-Oct-20 20:34
mvaSandeep Mewara27-Oct-20 20:34 
Questionfind low distance from two matrices Pin
costy3527-Oct-20 7:57
Membercosty3527-Oct-20 7:57 
GeneralRe: find low distance from two matrices Pin
Richard MacCutchan27-Oct-20 8:14
mveRichard MacCutchan27-Oct-20 8:14 
GeneralRe: find low distance from two matrices Pin
costy3527-Oct-20 12:18
Membercosty3527-Oct-20 12:18 
GeneralRe: find low distance from two matrices Pin
Richard MacCutchan27-Oct-20 22:49
mveRichard MacCutchan27-Oct-20 22:49 
QuestionConverting image file format Pin
Valentinor27-Oct-20 0:40
MemberValentinor27-Oct-20 0:40 
QuestionGoogle Map API & JavaScript Issue (Snowload Calculator) Working Model for easier troubleshooting Pin
Member 1497471825-Oct-20 5:31
MemberMember 1497471825-Oct-20 5:31 
QuestionXML NodeList Java object showing null in Nashorn Javascript Pin
shampoo7224-Oct-20 10:40
Membershampoo7224-Oct-20 10:40 
AnswerRe: XML NodeList Java object showing null in Nashorn Javascript Pin
Richard MacCutchan24-Oct-20 22:59
mveRichard MacCutchan24-Oct-20 22:59 
GeneralRe: XML NodeList Java object showing null in Nashorn Javascript Pin
shampoo7225-Oct-20 7:04
Membershampoo7225-Oct-20 7:04 
GeneralRe: XML NodeList Java object showing null in Nashorn Javascript Pin
Richard MacCutchan25-Oct-20 7:14
mveRichard MacCutchan25-Oct-20 7:14 
AnswerRe: XML NodeList Java object showing null in Nashorn Javascript Pin
shampoo7225-Oct-20 17:36
Membershampoo7225-Oct-20 17:36 
QuestionGetting a video webm from client to server Pin
Rayj201023-Oct-20 10:58
MemberRayj201023-Oct-20 10:58 
Questionimport declarations may only appear at top level of a module Pin
jkirkerx19-Oct-20 10:38
professionaljkirkerx19-Oct-20 10:38 
AnswerRe: import declarations may only appear at top level of a module Pin
jkirkerx19-Oct-20 11:16
professionaljkirkerx19-Oct-20 11:16 

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.