We use jqGrid with altclass set and with hoverrows:true. When you click on a row, the altclass class is no longer applied and the hover effect no longer works on the clicked row. How can you stop this from happening?
...
My plan is to have lots of boxes (an undefined amount). When show box is clicked under a box, it shows that particular box.
I have some unique divs in my html. The div is made unique by:
<div id="box-<%=box.id%>"></div>
In my application.js, I have
$('.show-box > a').click(function(){
$('#box').show();
});
I obviously need to have...
I have a form using JQuery validation plugin.
<label>
<input name="Distribution[]" type="checkbox" id="dist_europe" class="required minlength:1" value="Europe" /> Europe
</label>
<select name="Europe[]" size="5" multiple id="Europe">
<option value='Albania'>Albania</option>
<option value='Andorra'>Andorra</option>
<optio...
Sorry for the lame question.
I am trying to run a simple getting started tablesorter example with no luck.
I know my jquery works because I made a 'hello world' alert test.
I downloaded the .js files and placed them in my working directory/folder.
Firebug "Reponse" window shows me there is actual .js code in the files.
Firebug says...
Hi,
I'm using the below code in order to increase the number of results that my php/mysql pulls-in through a 'more' button.
My question is: Can I add a jquery cookie so that when the 'more' button is pressed, and more results are loaded, the current state is saved?
The results in question are listed elements which contain links to t...
Hi all -
I read in a file via HTML5 FileReader and jQuery like so:
holder.ondrop = function(e) {
this.className = '';
e.preventDefault();
var file = e.dataTransfer.files[0],
reader = new FileReader();
reader.onloadend = function(event) {
$.ajax({
url:"/path/to/upload",
type: "POST",
...
I have elements with various values for an attribute (ids="32, 56, 21"). How can I get the elements that contain 21?
...
I've been all around with hasClass, is(), if then etc.
What I'd like to do is when "btn" is clicked, look through a list of li's, find the one that has the class of "on" and get its index value. Depending on that value, run function x, add the class "on" to the next li and remove the class from the current li.
I want to avoid running ...
I have been able to pull data from my DB using jQuery/Ajax from a webservice into the jQGrid. Now I would like to send added/edited data back to the webservice. I've seen some examples by using PHP and the editurl: command. Will that work for webservices as well (like how I pulled down the data originally)?
I've looked over the exam...
Have a plugin that I'm working on and I've hit a wall in Chrome. The script works perfectly in FF, but Chrome is not correctly displaying the fadeIn and fadeOut effects. It looks like Chrome is just defaulting to show and hide. Any suggestions?
You can see it in action here: http://heartpublications.com
Here is the code:
$(documen...
In wordpress, when you make a blog entry, it displays the date year etc of that blog.
Is there a php/jquery script that can take any kind of title and render an image of that?
In other words if the entry data is "20th july 2010" how would I get it to render each of the three items in a different font/image.
...
Hi Friends
Here is a code of full calendar i am using
$(document).ready(function() {
var date = new Date();
var d = date.getDate();
var m = date.getMonth();
var y = date.getFullYear();
$('#calendar').fullCalendar({
header: {
left: 'prev,next today',
center: 'title',
right: 'agendaWeek,agendaDay'
},
editable: true,
events: [
{
title: 'A...
Hi everybody,
I've a problem to get the id of dynamically loaded anchor appended to a div. Here is the code that I get after filling the div:
<div id="sotto_eti">
<a href="#" id="a">a</a> <a href="#" id="b">b</a> <a href="#" id="c">c</a>
</div>
and here is the script:
<script>
$("#sotto_eti a").click(function()
{
alert($(th...
function openFile(file, object) {
var extension = file.substr( (file.lastIndexOf('.') +1) );
var fileName = file.substr((file.lastIndexOf('/') +1), (file.length - (file.lastIndexOf('/') +1))-4);
object.append('<img class="theimage" src="" alt="icon"/>');
object.append('<span class="thefile"></span>');
switch(exte...
I am having an issue with jquery in Chrome and Safari, the script is working fine in mozilla and opera.
Please check this link http://phpmagic.info/jquery/
When you click on the button, all the boxes should go down, then the value in the textare comeup in the first box, and same should happen as many times you click on the button, This...
Hi,
I have a simple jQuery image changer, that when you hover over it will make swap all images with their grey version except the one you are on, that one will stay colour (They are all colour to begin with) and when you hover over another image, the last image gets changed to grey and the new one gets changed to colour.
However on IE...
I'm trying to create a slideshow that will run in a DIV in the background while having links on top of it. The problem that I'm running into is that when I'm transitioning through pictures using the fadeIn and fadeOut JQuery functions, it is fading out the links as well. Is there a way to fade only the background image? My code is bel...
Hello All,
I have a href element and that has onclick event on it. I want to change the function after some event. I tried using jquery but the old one and new function both are fired. I want only the new one t be fired.
My Code is as:
<a href='#' id='cvtest' onclick='testMe("One")' >TEST</a>
after some event i am adding following co...
i have got this script that works fine, that allows a user to vote, but im kind of stuff of how i can make the vote button, when clicked again it toggle back to normal image! just like stackoverflow:
this is my script:
$(document).ready(function() {
$('.statuses').delegate('.vote_up', 'click', function(e) {
//stop event
...
Based on the JavaScript example below, is there a way to pass a reference to function f to the promptForProceed function and have it conditionally executed in promptForProceed?
Could you also do this if the ffunction took some parameters (ie: f(a, b, c) { ... })?
function f() {
//Do stuff..
}
function promptForProceed(myFunction) ...