hi,
i 2 Dropdown controls and 1 text box
In drop down1 one i have the values like 11.00,11.30,12.00,12.30,13.00, 13.30
In drop down2 one i have the values like 11.30,12.00,12.30,13.00, 13.30, 14.00
once the user selects the values in drop down 1 and drop down 2 an event will fires in drop down 2. where the sel...
The append cmd doesn't close my tags, but why?
What do i have to change?
for (var i = 0; i<=4; i++)
$("#wrapper").append('<li id=img'+i+'></li>');
always creates only <li id=img1> and so on but no </li>?!
Thanks for your help!
...
I have a nested table 3x3
<table>
<tr>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td id='myCell'></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
</tr>
</table>
So, i need to get cells closed to my '#myCell' - on the left, on the right, top, bottom.
var myCell = $('#myC...
We currently have a system for cropping images that uses jCrop on the front-end, and System.Drawing in .NET on the backend - this works very well, but now we need to introduce image rotation. Only 90 degree angles are needed, and jQuery.Rotate works fine in isolation, but I would like to combine these two jQuery plugins gracefully. Do yo...
i am using Jquery Drag and Drop
i have 3 divs
i want that gallery DIV should accept li from other two divs
i am using
$gallery.droppable({
accept: '#DIV1 li',
i cannot figureout how to put two DIV1 LI and DIV2 li in accept:
Thanks
...
I needed a simple three slides slider, so instead of using a jQ plugin I hand coded it myself. The code works but the animation occurs in 2-3 frames instead of happening in over 20 frames, except when in IE6 & IE7 where it animates perfectly in 20-30 frames. In all the other browsers(IE8, Firefox, Chrome, Safari, Opera) it animates in a ...
I am probably making some silly mistake but I am newer to the world of Jquery and am looking for some help with this issue.
I have a form that I need to check/validate two dates once they change their values. Once they change I had an Ajax call that loaded a page "checkdates.php" and passed in two bits of data. The Date that changed ...
Basically, I have a form that has some pretty date-sensitive info in it. The risk with the form being cached is that:
1) The user may not notice that the date is wrong and simply think that the server has loaded their saved data (which it should, if the date was correct). They then submit the data and it gets saved to the wrong date. Th...
I am including all of my JS as external files that are loaded at the very bottom of the page. Within these files, I have several methods defined like so, which I call from the ready event:
var SomeNamepsace = {};
SomeNamepsace.firstMethod = function () {
// do something
};
SomeNamepsace.secondMethod = function () {
// do somet...
I set up some jQuery tabs to start off with no tabs selected like this:
$('#tabs').tabs( { selected: -1 } );
Then I also have a separate link that when pressed needs to deselect all the tabs.
$("#deselectButton").click(function(){
$('#tabs').tabs( 'select' , -1 )
});
or
$("#deselectButton").click(function(){
$('#tab...
var xmlHttp;
function RefreshORP(eventTarget, eventArgument)
{
xmlHttp = GetXmlHttpObject();
if(xmlHttp == null)
{
return true;
}
xmlHttp.onreadystatechange = StateChanged;
var params = GetFormParam(eventTarget,eventArgument);
xmlHttp.open("POST","/contact.jsp",true);
xmlHttp.setRequestHeader("Content-type", "a...
How can I process the elements that are not currently selected.
Ex. on my html file, I have
<table>
<tr><td> .... </tr></td>
<tr><td> .... </tr></td>
<tr><td> .... </tr></td>
<tr><td> .... </tr></td>
</table>
on js file,
I have a click event and choose one of the row. During this event trigger, I'd like to process the other ro...
I need to have the ability for the user to click a '+' which adds a new drop-down to an infinitely expanding collection of drop-downs. If I give them all the same id, will the jQuery change event know which one called the change event based on $(this) or do I need to have a new id for each new drop-down that is created during the page li...
So if I had an input element in a certain div and another input element in that same div, is there a way I could reference that second input element from a $(this) that came from a change event of the first input element? This way I could have an infinite number of possible divs but each change would only effect the second element of tha...
How to process element excluding the first and last one.
I have a table with a given number of rows. I want to trigger the rows on a click event but should not process the click if first or last row is clicked.
How can I implement this?
...
Hi all.
I'm having a little problem with form submission with jquery. I've submitted a lot of forms with it in the past but I was just thinking, how can I use the event handler .submit() to submit a form and it's elements without callin the forms ID. The problem is that I can't seem to be able to chain elements with $(this) (it's possib...
This one should be easy, and I think I know the right answer, but here goes.
For compatibility reasons, should I leave the filename of jQuery as "jquery-1.3.2.min.js" or just rename it to jquery.js?
My guess is leave it as is to avoid conflicts in case another app uses a different version of jQuery. If they've renamed it to "jquery.js...
Is it possible to format a column in JQGrid such that the cells only show the beginning of the contents, and the cell can be expanded on click?
I have one column that needs to contain a list of items ( ~50 lines ) and it makes the grid far to large on initial load. I'd like to be able to expand the cell as needed.
I'd like to do this w...
I want to open a new window and carry over some of the HTML in the original page to the new window. What is the simplest way to do this?
Something like:
$("div#foo").click( function(){
var copyHTML = $("table.bar").html();
window.open(''); // somehow put copyHTML in the new window
});
...
I see 4 or more ways of referring to an asp.net control in jQuery
$("input[id$='txt1']"); OR
$("#<%= txt1.ClientID %>"); OR
$("#txt1"); OR
or access using class
Can you guide which one to choose in what scenario
...