Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #32593 > unrolled thread
| Started by | bit-naughty@hotmail.com |
|---|---|
| First post | 2017-02-10 01:54 -0800 |
| Last post | 2017-02-13 22:35 +0100 |
| Articles | 6 — 3 participants |
Back to article view | Back to comp.lang.javascript
Is it possible to change IDs on click? bit-naughty@hotmail.com - 2017-02-10 01:54 -0800
Re: Is it possible to change IDs on click? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-02-10 11:00 +0100
Re: Is it possible to change IDs on click? bit-naughty@hotmail.com - 2017-02-13 04:51 -0800
Re: Is it possible to change IDs on click? Osmo Saarikumpu <osmo@weppipakki.com> - 2017-02-13 18:18 +0200
Re: Is it possible to change IDs on click? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-02-13 22:36 +0100
Re: Is it possible to change IDs on click? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-02-13 22:35 +0100
| From | bit-naughty@hotmail.com |
|---|---|
| Date | 2017-02-10 01:54 -0800 |
| Subject | Is it possible to change IDs on click? |
| Message-ID | <1ca5176b-b881-4d94-862d-bc9633d97392@googlegroups.com> |
If I have one # section say, making some text blue, and another # section, making some text pink (with a div id=<those>), can I programmatically, in Javascript, change the id of the text from # one to # two?? So that the text changes from blue to pink? I know you can do it with classes with className, but what about id's? Thanks.
[toc] | [next] | [standalone]
| From | "Evertjan." <exxjxw.hannivoort@inter.nl.net> |
|---|---|
| Date | 2017-02-10 11:00 +0100 |
| Message-ID | <XnsA718700D8BA19eejj99@194.109.6.166> |
| In reply to | #32593 |
bit-naughty@hotmail.com wrote on 10 Feb 2017 in comp.lang.javascript: > If I have one # section say, making some text blue, and another # > section, making some text pink (with a div id=<those>), can I > programmatically, in Javascript, change the id of the text from # one to > # two?? So that the text changes from blue to pink? > > I know you can do it with classes with className, but what about id's? Did you try yourself? -- Evertjan. The Netherlands. (Please change the x'es to dots in my emailaddress)
[toc] | [prev] | [next] | [standalone]
| From | bit-naughty@hotmail.com |
|---|---|
| Date | 2017-02-13 04:51 -0800 |
| Message-ID | <7e2710e6-3f4a-4a6d-b082-4f33138ea5f0@googlegroups.com> |
| In reply to | #32595 |
On Friday, February 10, 2017 at 4:00:54 AM UTC-6, Evertjan. wrote: > Did you try yourself? > Umm.....how can I try it when I don't know what the language is? i.e. the keyword? i.e. *what* is to id's what "className" is to classes??
[toc] | [prev] | [next] | [standalone]
| From | Osmo Saarikumpu <osmo@weppipakki.com> |
|---|---|
| Date | 2017-02-13 18:18 +0200 |
| Message-ID | <o7sm4o$gar$1@dont-email.me> |
| In reply to | #32621 |
On 13/02/2017 14:51, bit-naughty@hotmail.com wrote: > Umm.....how can I try it when I don't know what the language is? i.e. the keyword? The thing is that your question, as many others that you ask, is very easily answered just by searching the subject. That is, ask a search engine first: "Is it possible to change IDs on click?" -- Best wishes, Osmo
[toc] | [prev] | [next] | [standalone]
| From | "Evertjan." <exxjxw.hannivoort@inter.nl.net> |
|---|---|
| Date | 2017-02-13 22:36 +0100 |
| Message-ID | <XnsA71BE5FC0DADEeejj99@194.109.6.166> |
| In reply to | #32622 |
Osmo Saarikumpu <osmo@weppipakki.com> wrote on 13 Feb 2017 in comp.lang.javascript: > On 13/02/2017 14:51, bit-naughty@hotmail.com wrote: >> Umm.....how can I try it when I don't know what the language is? i.e. >> the keyword? > > The thing is that your question, as many others that you ask, is very > easily answered just by searching the subject. That is, ask a search > engine first: "Is it possible to change IDs on click?" The best possible ideas surely are those about IDs. -- Evertjan. The Netherlands. (Please change the x'es to dots in my emailaddress)
[toc] | [prev] | [next] | [standalone]
| From | "Evertjan." <exxjxw.hannivoort@inter.nl.net> |
|---|---|
| Date | 2017-02-13 22:35 +0100 |
| Message-ID | <XnsA71BE5BEAC50Aeejj99@194.109.6.166> |
| In reply to | #32621 |
bit-naughty@hotmail.com wrote on 13 Feb 2017 in comp.lang.javascript: > On Friday, February 10, 2017 at 4:00:54 AM UTC-6, Evertjan. wrote: You wrote on 10 Feb 2017, but forgot to quote, and you should as otherwise the quoting makes no sense: >> If I have one # section say, making some text blue, and another # >> section, making some text pink (with a div id=<those>), can I >> programmatically, in Javascript, change the id of the text from # one to >> # two?? So that the text changes from blue to pink? >> >> I know you can do it with classes with className, but what about id's? >> Did you try yourself? > > Umm.....how can I try it when I don't know what the language is? The language surely must be Javascript, or your posting is off-topic. > i.e. the keyword? What is what? > i.e. *what* is to id's what "className" is to classes?? You can find that in all CSS-specs on the web. Damn, you are lazy! -- Evertjan. The Netherlands. (Please change the x'es to dots in my emailaddress)
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.javascript
csiph-web