jquery

jQuery text split and join, does not wrap the first letter

Hi, I have a function that splits each letter from a span text and wrap it into an em. It works but the first letter from the span is not wrapped. How can I wrap that letter also in em? <script> jQuery(document).ready(function(){ $(".nsplit").live('click', function(){ var newSplit = $("#selectable1 span.cica").tex...

is there a way to select :first-word of <p>?

like we select p:first-letter? I know there is no property called p:first-word but if any other way SO user knows. I don't want to add anything in HTML. ...

remove class from current group

The easiest way to see the problem is checking the code here: http://www.studioimbrue.com/beta What I need to do is once a thumbnail is clicked, to removed the "selected" class from all other thumbnails that are in this same or without removing them from the other galleries on the page. Right now, I have everything working except the ...

How to select all li greater than that the cursor hover it?

Hi, all! I want to change css color of all li elements that greater than that the cursor I hover. To be clear I give an example: Suppose I have 10 li - elements in an unordered-list (ul - element).When I hover over 5th element I want that all elements from 5 to 10 will be changed css color (first 4 elements remains black be default). My ...

automatic slide show with play puase buttons

In my application i want automatic slide show with play puase buttons. plz give me examples ...

How to pass multiple selected (through checkboxes) row ids to a php script in jQuery?

I'm generating an html file which looks like: <tr id="ID001" property1="PROPERTY001"><td><input type="checkbox" name="row_checkbox_ID001"></td><td>...</td><td>...</td></tr> <tr id="ID002" property1="PROPERTY002"><td><input type="checkbox" name="row_checkbox_ID002"></td><td>...</td><td>...</td></tr> When the user select...

Zend Framework - JQuery - Date Picker - Images not displayed

Hi, I am developing a web application with Zend Framework, and I am using JQuery for my forms. I have a problem with the DatePicker in a form. When I click on the text input, the DatePicker appears, but without the themes images... In my bootstrap: $view->addHelperPath('ZendX/JQuery/View/Helper/', 'ZendX_JQuery_View_Helper'); ...

remove class from all other list items

I've gotten help from others on this, but their replies were a little bit too broad to help me... I'm a newb when it comes to javascript so I can't quite wrap my head around their answers (and everything I've tried in the last 3 days hasn't worked.) The working site is here: http://www.studioimbrue.com/beta The problem is that with the...

why is my jquery UI datepicker not defaulting to english

i basically copied the code from here but when i tested my site i saw this: any idea why i am not getting an english calendar ...

jQuery xPath selector, &&

I'm using jQuery to run through all the inputs within a section that I have set from hidden to show, and add required calsses, so as to catch the validation. $("#" + dependant).find("input[type!='radio']").addClass('required'); Works fine, but I also want to exclude the submits. In normal xPath I would; input[type!='radio' and type!=...

making a dialog hidden

All, How is that a dialog is hidden and brought up on mouseover event and onmouseout event (ex:like media player controls) link <div class="bar" style="padding:0px;" id="bar"></div> <script> bar = $(".bar", "#view").dialog({ height: 30, width: '100%', textAlign : "justify", margi...

jqueryui alternative

I'm looking for a javascript user interface library (or framework). I will use it with jquery. Of course jquery-ui was my first stop, but it doesn't give me even the simplest features i want. it can be very good for rich widgets like calendars, modals, sorting, dragging, but it lacks the core functions i need. for example, i want to be...

Generic list custom paging.

Hi everyone, I am using jquery ajax method in my app and from the web method I am returning a huge generic list.Upon jquery ajax success I am rendering div's with the data retruned from the web method. B'coz the data returned is very huge,I need to paginate the results.Initially I am returning the first 10 records using List.Take(10).The...

Need Help with JQuery UTC Date function

I am trying to use the Jquery Countdown plugin but I am having trouble with my UTC Date formatting. The date I wish to countdown to is Friday 23rd July 2010. Here is the relevant code... until: $.countdown.UTCDate(2010, 7 - 1, 23), format: 'YOD', The output is just 00.00.00 etc Can anybody help me? Thanks in adva...

Php / Ajax / Jquery data submission approach

I have a table/grid system with a 7 days along the top and the various types of data down the side, now for each type of data against a particular day there's a plus and minus sign so the user can increase or decrease the data occurrences. Now given that there's plenty of data types as well as 7 (for each day) values for each type, what'...

Jquery click event propagation

I've a table with click events bind to it rows (tr). Also,there're A elements with it owns click events assigned inside those rows. Problem is when i click on A element,it also fires click event from TD.And Im dont want this behavior,i just want to fire A click's event. Code: //Event row TR $("tr:not(:first)").click(function(){ ...

Implementations of html tables / grids with resizable columns

I'm trying to create a html grid / table with resizable columns and selectable rows (plus a couple of other bits and bobs) - I know I'm not going to be able to find an existing grid that does exactly what I want, but I was hoping that I could find an existing grid and use it as a starting point for customisation. I have managed to stumb...

Get remote json data using local html file (using javascript - jquery)

Hi, I'm just making a small utility with a local html file (checker.htm) with JavaScript(using jquery) on my desktop that requests data from my website every 10 mins. if it finds it then does nothing. else alerts me. The problem i'm facing is : I can't seem to use either POST/GET from the local htm file c:\checker.htm : <script src="...

Selecting a form that doesn't have two or more names.

I'm selecting a form that doesn't have the name "someform", like this: $("form[name!=someform]").bind("keyup", function(e){ [some code] }); What if I want to select a form that doesn't have multiple names, like "someform1" or "someform2"? How do I do that? ...

I can't get 'return false' to keep .live() from repeating code propogation

I want this to be set up so that when a certain body of text is clicked, a text input field pops up, and the user can enter data into the field, then either click a 'save' or 'cancel' button and either send it to database or reset the value, respectively. However, despite usage of 'return false', I can't seem to keep this code from activ...