This is probably pretty simple.
I want to select all elements of a given class "thisClass", except where the id is of a given id "thisId".
i.e. something equivalent to (where -/minus implies remove):
$(".thisClass"-"#thisId").doAction();
...
I have recently done a very simple highlighting with jQuery and a highlight plugin. It looks like this:
$('myButton').click(function() {
$('body').highlight($('#myInputText').val());
});
But I wonder how can I do the Chrome like highlighting, I mean highlight the letters whenever I type in some letter in textbox without s...
Inside a webpage I have an Excel download button, which redirects to a webpage that serves the requested Excel file via the application/ms-excel MIME type, which usually results in a file download in the browser.
In the webpage, I have the following jQuery code:
$(document).ready(function () {
$(".div-export .button").click(functio...
<div>
<div>test</div>
</div>
$("div:contains('test')").css('display','none');
I know I am going to kick myself on this. The problem is that when this runs all divs are hidden due to nesting. How do I make it so that the parent div does not get hidden? I am limited to using 1.2.6
...
Is this possible to open a File Upload window when clicking on a image or link. (like what exactly in the <input type="file" name="upload" />).
...
I am trying to retrieve the full HTML of a page, so far I am using:
$('*').html()
Is there a better way (also this excludes the <html> tags at the top)?
...
for example i have the markup
<div>
<img src="#" alt=""/>
<img src="#" alt=""/>
<img src="#" alt=""/>
<div>
I want to select $('div img') and then assign each one a z-index value so the first one is 3, second 2, third 1. Is this simple with jQuery?
Thanks
...
if(count > 0){
for(var i= parseInt(start); i < parseInt(count); i++)
{
link ='<a href="/diabetes/ropimages/origpicdisplay.php?pid='+pid+'&rid='+i+'" target="_blank"><img src="/diabetes/ropimages/thumbpicdisplay.php?pid='+pid+'&rid='+i+'"/><a> ';
if(i > start){ $("#content1").append(link);}
else{ $("#content1").empty().html(...
Calling the ajax called URL works well without ajax eg. http://localhost/ci/controller/method/param_value. But using ajax it doesnt work.
Following are the code segment, i have just started with JQuery+Ajax with CI.
Here is my controller:
<?php
class BaseController extends Controller{
public function BaseController(){
parent::Co...
I have the following code:
<script>
$(document).ready(function() {
$('.toggle_section').click(function(e){
parent = $(e.target).closest("div")
objChild = parent.children('div');
$('.sectionContentId').hide(400);
$(objChild).toggle(400);
});
});
</script>
<br />
<d...
Hai,
I am in search of a photo gallery in jquery like the one in the following link http://www.epson.co.in
Could you guess tell me where i can get a plugin like this.
thanks
...
hi guys,
i'm totally noob to asp.net mvc and currently i'm writing an web app which allows user to select multiple product from a listbox and add them to a dynamic table with rows that can be added or removed.
thus i'm thinking of using jquery to add and remove the table row, thus the table row will be added via append("xxx").
but the...
Hi guys, im with a problem.
I'm trying to put my visual studio 2005 profissional with the jQuery doc
I'm importing the core and doc files, but i still dont get the result i hope..
No intellisence at same...
...
I've added a toggle button to TinyMCE (using the jQuery plugin version) that looks like:
$('a.mce_show').click(function(){
// toggle all textareas
$('.wysiwyg').tinymce().show();
});
$('a.mce_hide').click(function(){
// toggle all textareas
$('.wysiwyg').tinymce()....
Heya everyone
I been struggling along with this piece of code for the longest time, its driving me insane. I am trying many different things and looking at past posts here but nothing seems to be helping.
Basicly i have a jquery pagination code in place and i want to add animated transitions between pages. With some assistance i got th...
Hi,
I am using this plugin for my new site:
http://colorpowered.com/colorbox/
The page in concern has two hyper links which are of the same class:
a.emailQuote
These both should open the same colorbox window which is done by the following code:
$("a.emailQuote").colorbox({
transistion:"fade",
title:true,
iframe:tru...
Let's say on ajax success the function: xmlParser(xml) is called and the XML response contains about 1500 xml elements (for example: ...)
Inside it looks like:
function xmlParser(xml){
var xmlDOM = $(xml); // dom object containing xml response
xdom.find("book").each(function(){
var $node = $(this);
// parsing...
Hi, I have a MVC web application. I am calling the controller method through the getJSON() method of the jquery.
$.getJSON("applicationurl/controllerActionMethod", { parameter1: json, parameter2: jsonGrid, parameter3: value3, parameter4: value4 }, function(jsonResult) {
});
Here I am passing the json values into the parameter1 a...
Hi there,
I've been using the jQuery form validator, but I can't seem to figure out how to trigger it by class. Take this example:
$("#myform").validate({
rules: {
field: {
required: true,
date: true
}
}
});
Where field it is expecting the name of the particular input. But, what if I have the following:
<inpu...
Here is function ,
<script type="text/javascript">
$(document).ready(function() {
getRecordspage(1, 5);
$("a.page-numbers").click(function() {
alert(1);
getRecordspage($(this).text(), 5);
return false;
});
});
And in my page i am appending anchors dynamically to th...