Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Closed 8 years ago.
Improve this question
Ok so I have set all the styles of section to be locked using :
$("section").attr("class", "XXX Locked");
but i want the first section in the page to have a different style
like :
$("section").first().attr("class", "XXX");
but this doesn't work...
this first element is generated dynamically so document.getbyId(smtgn).value won't work
Use the :first selector..
$("section:first").attr("class", "XXX");
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Closed 9 years ago.
Improve this question
How can I make a pop up box appear through a javascript file?
sample here --> http://jsfiddle.net/NathaliaZeed/hPY78/
You can do this with window.location.hash like this:
window.location.hash = "#login_form";
Here is the demo fiddle.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Closed 9 years ago.
Improve this question
I am using this tool http://instafollowbutton.com/ in order to create a follow button for Instagram in my site.
I am wondering if it is possible to overwrite the js file so as to change the word "Following" when you follow someone with just "Follow" instead. And if yes how can I do that?
Thanks in advance
If it's on your site, then you can use Javascript (jquery would make this easier) to find the element on the page, and change the text.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
how to create elements in javascript with href=variable?
how to create this with javascript when you click a button?
every time you hit the button, another div will appear.
<div></div>
thanks
Don't know exactly what you want, but you can create an a element with href=variable like this :
var a = document.createElement('a');
a.href = "http://google.fr";
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I want to make "intro" page where you can choose two different colors for the template.
My question is: is there a way to do this without creating new .html files with changed style?
is there a way, where you can change with click and that to lead you to index.html? (also, if this is possible, how to apply this to all .html documents)
Thanks!
Yes, just select the link and change its href:
$('link[rel=stylesheet]').attr('href', 'my-other-sheet.css');
If you have multiple stylesheet include tags, you'll need to select by some other criteria like id.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Closed 8 years ago.
Improve this question
I would like to implement a panel that looks like the lower part of stackoverflow tag panel.
It should add only free text from a textfield - no ajax, autocomplete or selection from pre defined values
It should look something like this:
How can I implement it in jquery/js/kendo
Thanks.
You can try jQuery Tag-it which is a simple and configurable tag editing widget with autocomplete support.
You can use tokeninput which is very easy to use.