-
Recently Browsing 0 members
- No registered users viewing this page.
-
Similar Content
-
Bid under $10 for this full Superstar Web Development & Design Bundle
By News Staff,
- neowin deals
- pay what you want
- (and 12 more)
- 0 replies
- 7 views
-
This Master Learn to Code 2021 Certification Bundle is Price Dropped to just $20
By News Staff,
- neowin deals
- online courses
- (and 18 more)
- 0 replies
- 4 views
-
Pay What You Want for the Superstar Web Development & Design Bundle
By Steven P.,
- neowin deals
- pay what you want
- (and 14 more)
- 0 replies
- 2 views
-
Pay What You Want for the 2021 Superstar Web Development & Design Bundle
By News Staff,
- neowin deals
- pay what you want
- (and 10 more)
- 0 replies
- 3 views
-
Pay What You Want for this Learn to Web Design Bundle
By News Staff,
- neowin deals
- sponsored
- (and 12 more)
- 0 replies
- 407 views
-
Question
gregor
Hi, here's my code:
HTML
JQuery code AFTER HTML (in <body> tags):
$(".button").click(function () {
$(".toggle", this).text(($(".toggle", this).text() == "on") ? "off" : "on");
});</script>[/CODE]
what it should do?
- if button toggle <div> element is set to "on", set it to off. otherwise, set ti to on. :)
what it does?
- it shows the replacement but the text imediately jumps back to "on". :(((
I'm going crazy, clueless where's the catch???
Help me please :(
Link to comment
Share on other sites
2 answers to this question
Recommended Posts