I've got a paragraph: <p>I want to put a ding in the universe.</p>
I want to change the attributes of the characters in the text e.g. to change its color, so after this the paragraph should look like this:
<p> <span class="color"> I </span> <span class="color"> w </span><span class="color"> a </span><span class="color"> n </span><span ...
On this page http://cacrochester.com/ the 2 rotating images are messed up in webkit browsers. It's not all the time, and it's usually not on the first image. Why is that?
I'm using the NivoSlider jquery plugin to rotate the images.
here's what i'm seeing.
...
http://www.therapistsurvey.com/vignette0/vig01
Notice that once you click the See Parents' Response, the link will trigger a javascript that shows a div This is done using the following lines:
<%= javascript_include_tag :defaults %>
<%= link_to_function "Click to See Parents' Response: ", "Element.toggle('response')" %>
<div id="...
I have a page with multiple elements (page A). It is set up, so all are hidden but one. When you click on a link it will hide the one currently shown and only show the section corresponding to the link you clicked. I have that code working perfectly. I also have a separate page (page B) that has a list of links. When you click one of the...
Im at a loss here, I have 2 forms that have to share one submit button. I am able to tell which form submits by checking values of input's, but I can't get the validation to bind itself to the form on submit. I need to add validation and ajax functionality (remove forms and display another div-but that should be easy once I get the valid...
I'm trying to access a getJson array I created to add image references to a option list tag. I'm trying to levy it so that user can also click a link to go to the next page.
I'm fairly certain the syntax is wrong as I'm not very accustomed to jquery, could someone please help me out ?
$(function(){
$("select#chapters").ready(function...
I'm doing my first web app (not new to programing) and I have a little problem that I know why I have it but I need a way to sort it out.
I make an ajax post on a page, that ajax post uses two hidden fields to retrieve some data, send it to the Action and get some json to show up. Perfect.
The thing is that I'm changing the content of ...
In a previous post that I posted here, I got responses that contentEditable and designMode are bad practices. So I switched to TinyMCE, but that uses designMode as well... is there something bad about it?
Im using it for a Rich Text editor on my website fyi.
...
I trying to use this plugin for jquery which seems perfect for what I am being asked to do to do.
http://flexigrid.info/
Now what I'm working with is an HTML table, and I don't have the ability to change it. The above site has three examples. The first two seem to apply the flex grid to existing tables, which is what I need, but they ...
My Facebox pop-up contains a form with a submit button. I also have a second button to open an unrelated Facebox pop-up that was working before I added jQuery.validate to the project. I need to validate the email and password fields prior to being submitted.
I should add that these pop-ups are loaded via external .html files. This loade...
I'd like to invoke a mailto link from JavaScript - that is I'd like a method that allows me to open the email client on the users PC, exactly as if they had clicked on a normal mailto link.
How can I do this?
...
Using Javascript I'm crudely simulating Brownian motion of particles, but for some reason I don't understand my particles are drifting up and to the left.
The algorithm is pretty straight forward. Each particle is a div and I simply add or subtract a random number from each div's top and left position each round.
I read up on Math.rand...
hi,
i'm trying to select the <a> within the <span> that's the nth child of the <li>
HTML
<li>
<span><a></a></span>
<span><a></a></span>
......
<span><a></a></span>
</li>
jQuery
$(function(){
if ($('body').attr('class') == 'special') {
$('li span:nth-child(1) a').css({'color' : '#444444'});
};
});
what am i missing here bec...
This much I have already cobbled together (thanks to Stack Overflowers):
I have a series of product modules, each of which contains a product name and a checkbox. Checking a checkbox adds the corresponding product name to a list elsewhere on the page, un-checking a checkbox removes the coresponding product name from the list. When the u...
i have this jQuery file, but the vote_up click handler keeps conflicting with the vote_down click handler, when i click the vote_down element it changes the vote_up element:
jQuery script:
$(document).ready(function () {
$("a.vote_up").click(function () {
//get the id
var the_id = this.id.split('_').pop();
/...
For an MVC 2 app that relies on many partial views and almost exclusively uses Ajax for POSTs/GETs, what would be the best way to implement the setting, passing, retrieval and display (using a JavaScript modal) of these messages?
My forms all POST (by way of jQuery $.ajax) to actions that return partial views (html) that are used to upd...
I am new to jQuery and am having a problem selecting an item in a select list. I have implemented cascading select boxes as show in this post. Everything is working fine except for setting a default.
The problem is that I need to select one of the child items when the page is first loaded.
Code:
<script type="text/javascript">
fun...
Is there a way to find out the width and height of the follow image with Jquery?
<div id="imgBox"><img id="imgID" src="images/koala.gif" /></div>
Then pass it into CSS?
<style type="text/css">
#imgBox, #imgBox img { width:imageWidth; height:imageHeight }
</style>
I'm guessing...
<script type="text/javascript">
$(document).r...
I am trying to parse XML feeds from YouTube using jQuery (by doing $(xml).find(...)), but jQuery is having really hard time with those. YouTube feeds are real mess - they have bunch of namespace tags, escaped html tags with inline styles and what not.
Are there any more powerful javascript XML parsers out there (preferably jQuery-compat...
Hi everyone,
I have a dropdown in my form (the code was provided) and when the second option (of2) in the drop down is selected, some form elements change. It all works fine.
What I want to be able to do is change the dropdown to two radio buttons instead.
Having the same form changes take place on selection of the second radio button...