I want to add 'Year' or Years' to the end of a string depending on the string.
Like this:
$("#selector").val(conditional_value_here);
Using jQuery UI I have a slider that manipulates a value:
$("#slider").slider({
value: 1,
min: 1,
max: 25,
step: 1,
slide: function(event, ui) {
$("#amount").val(ui.value + ...
I have images on my page. User can add more images onto the page by clicking a button. New images are added asynchronously. Initially, each image on page use a special class to be used when the image is loaded. After the image is loaded, that class is removed.
Each image being loaded has the class imageLoading:
<img class="imageLoading"...
I have two JavaScript files that contain a jQuery function with the same name $().
How can I distinguish between the two identically named functions?
...
Hello,
I want to pass a $_GET[''] to a php file, when a word is clicked in a div,it must display data from the db.
It displays the data without the query.
The process.php contains SQL statement to query the db and display values.
Thanks
Jean
...
I have a problem with the jqtouch bottom toolbar. Its a stationary bottom toolbar that is implemented with the iScroll plugin for jqtouch.
When I want to switch between a page with a "right" slide transition effect I want to exclude the bottombar from also using the transition effect.
The reason for this is because it looks weird when ...
Hi,
This might sound like a very stupid question to some of you, but I assure you I've been checking through the internet and I haven't had any luck about this. My question is: is it possible to set an initial pagination number in the tablesorter pager plugin? By default it takes the 10 option, but I've tried to put a 5 as the selecte...
Hi,
The title is a bit confusing but here's what I'm after:
I have a set of elements containing all the h3 elements in a page.
In jQuery terms: var mySet = $('h3').
I also have an div element var myContainer = $('div#foo')
I need to find all items in the set mySet that are children of myContainer.
Any ideas? I bet there's some magic...
I have the following jQuery code:
$("a").click(function() {
if ($(this).attr('href') != '#') {
if (strpos($(this).attr('href'), 'mob.php') !== false) {
$.ajax({
url: $(this).attr('href')+"&logo=0",
cache: false,
success: function(html){
$("#ajax").html(htm...
Trying to catch td with style:
<td style="color: #333;">
Hope this should work, but it doesn't:
td:[style='color: #333;']
Any idea?
Thanks.
...
I have some indicator displays settings which float above a menu. Problem is when someone resizes the 'indicators stays on the same place', the page needs to 'refreshed to position correctly'. How to have a page refresh by itself when it detects the page is being resized?
or is there any better way to do it?
jQuery
function findPosY...
I understand that are great plugins for auto-creating multi-part forms but my requirement is pretty simple and basic:
html:
<form action="">
<fieldset class="step step1">
fields ...
<button class="continue">Continue</button>
</fieldset>
<fieldset class="step step2">
fields ...
<button class="...
Hi, I have an Ajax function which will retrieve some RSS feed script from server. I put this responsetext in a div using:
$("#divId").html(responsetext);
I want to execute the script inside the response. Currently, the RSS feeds not showing in the div. Is there any way to do that ? thanks..
responsetext
------------- -
<div class="...
Hello,
i execute a javascript with jQuery $.getScript.
In the executed script i haven't access to the functions and variables of my source file.
Is there a solution?
...
We have a table:
<table>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
<td>5</td>
<td>6</td>
<td>7</td>
<td>8</td>
<td>9</td>
<td>10</td>
</tr>
</table>
We update this table by throwing into each <tr> only 3 <td>.
It must look like:
<table>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
...
Hi,
I've taken the accordion menu from http://www.i-marco.nl/weblog/ and have customised it to what I need. One problem I have though is that I have a couple of submenu items which are also collapsible. The code I have works fine in terms of collapsing the menu, but I can't get it to retract this menu when the parent element is clicked....
Hi, so I want to do something like when you press on LogOut, you get a waiting message like "please wait.." while its running ucp.php?mode=logout in the background, and after it has loaded that it should refresh the site.
How should this be done??
I am new to jquery, but so far i gave my link a ID, called #logout, made a <div id="messa...
Say i have a selection of textboxes like this;
var arrayoftextboxes = $('.textbox1, .textbox2, .textbox3');
Is there a way I can call a function on each one in a simpler way than this?
It only needs to be called once.
arrayoftextboxes.each(function(i){foo(arrayoftextboxes[i]);});
I tried
arrayoftextboxes.load(function(){foo(this)...
Hi, i'm using jQuery for sending ajax requests to the server, but i have some problems with the charset. In the ajax function documentation is written that data is always sent in UTF-8 according to the W3C XMLHTTPRequest standard, so i don't think that jQuery allows you to change the request charset (except if you load a script, but that...
We have a table:
<table>
<tr>
<td width="10">1</td>
<td>text 1</td>
</tr>
<tr>
<td width="10">2</td>
<td>text 2</td>
</tr>
<tr>
<td width="10">3</td>
<td>text 3</td>
</tr>
<tr>
<td width="10">4</td>
<td>text 4</td>
</tr>
<tr>
<td width="10">5</td>
<td>text 5</td>
</tr>
<tr>
<td width="10">6</t...
I'm trying to traverse an AJAX response, which contains a remote web page (an HTML output).
My goal is to iterate through the 'script', 'link', and 'title' elements of the remote page - load them if necessary, and embed its contents to the current page.
Its working great in FF/IE, but for some reason - Chrome & Safari behaves differen...