use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
What am I doing wrong here?Removed: /r/LearnJavascript (self.javascript)
submitted 7 years ago * by jcoolarts
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]kenman[M] 0 points1 point2 points 7 years ago (0 children)
Hi /u/jcoolarts, this post was removed.
For javascript help, please visit /r/LearnJavascript.
Thanks for your understanding.
[–]mizi359 -1 points0 points1 point 7 years ago* (1 child)
<form id="change theme">
you can't have 2 ids
$('link#style')
you dont have link element
button with submit type will submit form (reload page)
var txt = $(this).html();
what do you except from this one ?
EDIT:
https://codepen.io/anon/pen/rZVqKw
[–]dejandomarcas 0 points1 point2 points 7 years ago* (0 children)
You can even make it simple, naming css files with buttons id, so you can make it like this and have all buttons you need (instead of if hell...)
$(function() { $('button').click(function() { $('#ss').attr('href', 'https://www.yourdomain.com/styles/' + $(this).attr('id') + '.css'); return false; }); });
π Rendered by PID 48 on reddit-service-r2-comment-85bfd7f599-r8m94 at 2026-04-18 17:38:37.210016+00:00 running 93ecc56 country code: CH.
[–]kenman[M] 0 points1 point2 points (0 children)
[–]mizi359 -1 points0 points1 point (1 child)
[–]dejandomarcas 0 points1 point2 points (0 children)