Okay, I cannot figure out what I'm doing wrong here...
Take the following jQuery selector...
$('tr[batchid]:has(span.chkselb input:checked) span[id=assetcount]')
This returns 2 elements. Yet if I do the following selector:
$('tr[batchid]:has(span.chkselb input:checked) span#assetcount')
This returns 0 elements. Aren't these two...
Hello, I am pretty new to JQuery and I'm working on a menu based on Superfish script.
I am having troubles to keep the addClass on current clicked item set when I navigate thru links.
My code:
JS
<script type="text/javascript">
jQuery.noConflict();
jQuery(document).ready(function(){
jQuery("ul.sf-menu").superfish({pathClass: 'corren...
I am facing this bizarre problem in my asp.net mvc application:
In one page I am showing a table full of data of a model class. Each row of data has a Edit image <img src='somesrc' onclick='fnClick({mode:'edit',..other params});/>'.
In addition to that I've Add button also to populate the same model class mentioned <a href='#' onclick=...
Hi, suspect I'm trying to be too clever for my own good with this one!
I'm working on a jQuery plugin function that will toggle a class on/off on an element when you hover in/out, but doesn't remove the class if you click inside the element before hovering out and doesn't toggle if the element already has that class before hovering in.
...
The way I have my site setup is that I have a grid of thumbnails that is sized based on the user's screen resolution and also has a scrolling mechanism in it. Another feature I'm trying to add is the ability to click on a thumbnail and have the image you clicked appear in the center of the screen at full size (or as close to full size a...
I think this should be a rather simple thing to do, but I'm completely hangin' here! I'm really not sure how much more descriptive I can be here, the title pretty much explains it all. It's a fairly odd situation because my google skills have completely failed me, and I know the solution is probably so simple to implement.
Would anyone ...
I'm trying to set up a simple JQuery example in order to make AJAX calls to a .NET webservice. Using the following example below I'm getting AJAX errors that are just saying 0 in the result instead of any meaningful message:
Javascript Call
function QSHelloWorld() {
var options = {
type: "POST",
url: "http://localho...
How does one programically select the top row of a JQGrid. I want to have the top row already selected when it is opened on the page. My grid is sorted by a descriptive column so the first row's id could be any number. I know the method to use I just don't know how to get the rowid for the top (first) row. The method is:
jQuery("#mygri...
I am having difficulties finding a basic example of using jquery with jsp in NetBeans. Anyone have a resource bookmarked?
thanks
...
I need to modify the dialog confirmation buttons. I want to have the confirm and cancel buttons swapped around (so cancel is to the right not the left of the confirm button). I also want to change the background image on the confirm button so that it's a different colour. I thought about doing this in seperate jQuery code so that I don't...
I need to trigger the click event on a link and then, if none of the listeners prevented the default, change the location.
This is what I've got so far:
var $el = $('a#my_special_link');
var onClick = $el.attr('onclick');
// Hack to capture the event object
var ev_reference;
var ev_capture = function(ev) { ev_reference = ev; }
$el.bi...
How do I disable past dates on jQuery datepicker? I looked for options but don't seem to find anything that indicates the ability to disable past dates.
UPDATE: Thanks yall for the quick response. I tried that with no luck. Days were still not grayed out as I expected and still accept the selected past date.
I tried this:
$('#datepi...
An update panel, a postback and jQuery. Sounds like a bad joke,
but here's my situation.
I've got two grids wrapped up in a MS update panel. The grids each
have buttons in them that cause postback events to happen. under one
grid is a div which is hidden by a jQuery function. And in one grid
is a hyperlink which can cause that hidden di...
How would you dump an image captured using the print sreen key into a div tag?
...
I'm working on a utility web app that to help manipulate some domain-specific XML data.
The flow goes like this:
Load XML file
Parse XML file using the browser's native XML objects (not jQuery!) and convert into JavaScript object.
Store resulting object using $(document).data()
Iterate through object and extract additional information...
Is there a drupal function or convention for including JavaScript onto a page or form?
My current solution is to hard code the script tag as part of the output of my form's theming function, but it seems like there should be a better way, since JavaScript should generally be the last thing loaded on the page.
...
I asked a similar question earlier http://stackoverflow.com/questions/1610752/how-can-i-have-jquery-attach-behavior-to-an-element-after-inserting-it, but still have not found an answer. To keep things clear I am asking a new question with a different example.
Here is my code that doesn't work.
$(document).ready(function() {
$('form...
Hi
I'm trying to increment a value every second on the client side with jquery
this is what did:
<script type="text/javascript">
$(document).ready(function increment(){
$("#counter").text(parseInt($("#counter").text())+1);
setTimeout(increment(),1000)
})
</script>
this is not working as expe...
I have many lists e.g. a todo list, a shopping list etc. on my web page. I am using AJAX to add or delete the items. For example, for a todo list my HTML is like:
<tr id="todo_userttypea_23"> <td>name</td><td>Delete</td></tr>
Note if the users press delete then I am deleting that row.
I get the id of the row and then break it to find...
Hi,
I am using the bassistance jquery plugin validation.
I have a drop down list with 2 values.
If the first value is selected by the user a valid datefield needs to be populated and if the second option is selected then a textbox needs to be filled with some text.
If nothing is selected then it need to return a validation on this as...