Hi. I have a table set up with a .click() function on each row so
that if it is clicked on, a class is added to the row thus changing
the background, etc. I was wondering if there was is a way to take
the id of the row that was clicked and populate a hidden field with
it. What would I need to i
Works like a charm! Thanks so much! :)
Works like a charm! Thanks so much! :)
Works like a charm! Thanks so much! :)
Hi. I have a table set up with multiple rows. Once a row is
selected, the class of the row changes to "clicked". The id of the
row is the "sequence number", and each td within that row has an id
of the "sequence number" plus a title, such as "account". So, the id
of the first td in the first
Okay. So I'll tack the digits onto the end. So that it will be
Account1, etc. The main thing I think I need is how to retrieve the
id of an element once I know its class. Thanks.
Okay. So I'll tack the digits onto the end. So that it will be
Account1, etc. The main thing I think I need is how to retrieve the
id of an element once I know its class. Thanks.
Okay. So I'll tack the digits onto the end. So that it will be
Account1, etc. The main thing I think I need is how to retrieve the
id of an element once I know its class. Thanks.
I have changed things a little now. Here is an example of my current
code:
$('#edit').click(function() {
var clickedID = $('.clicked').id;
transNo = ?; //This is where I need to retrieve the row's id
window.location = "GL0002T?action=R&transBatchNo=&transNo="+transNo;
});
1
400-04
So, I should probably populate the name or title of the tr with the
sequence number, which is currently the id. You're right about
getting rid of the class "row." I'll take care of that.
Perhaps there is a better way than what I've been trying. Each row
has a distinct sequence number that I've
Hi. I'm using CGIDEV2 with AJAX, JQuery, and JSON to page through
search results (showing 100 at a time). For the paging, I have a
beginning arrow, page left arrow, page right arrow, and an end arrow.
When I am on the first page of results, the beginning and page left
arrows have an id of "begin
Hi. I have a form with a disabled submit button when the page is
loaded. I'm trying to activate that submit button only when two text
fields(ids="equipmentNumber" and "description") and three select boxes
(ids="type","department"," and "location") contain a value. Here is
my current code:
if (
Thanks for your suggestions, guys. I tried replacing != with !==, and
nothing changed.
Mike, concerning your suggestions, I'm really not sure what's going
on. Is the first one testing to see if each of the fields contains a
value...and then enabling the submit button? When I try that approach
a
Awesome! Thanks for the suggestion that I probably should have
assumed to be true, JQuery Lover. I just have one more question
concerning this. Currently, I have the following code:
$('#equipmentNumber').keyup(function()
{
$('#submit').attr('disabled', !($('#equipmentNumber').val() && $
('#
Hi. I'm making my first attempt at utilizing JQGrid with a CGIDEV2
application. When loading the page, I keep getting an error that says
$("#results').jqGrid is not a function.
Here's my JS:
$(document).ready(function()
{
var columnNames = ['Product Group','Description','Turnover
Rate','G
I had been messing around with the paths but couldn't seem to get it
to work. However, when you open JQuery.JQGrid.js, you see that one of
the first lines is
var pathtojsfiles = "js/"; // need to be adjusted
When I changed "js/" to point to all of the other Javascript files
associated with JQGr
I had been messing around with the paths but couldn't seem to get it
to work. However, when you open JQuery.JQGrid.js, you see that one of
the first lines is
var pathtojsfiles = "js/"; // need to be adjusted
When I changed "js/" to point to all of the other Javascript files
associated with JQGr
I have been trying to get a grid as a subgrid to work for about a week
now. When I click the plus sign in a row, I can see (via firebug)
that the code relative to the subgrid gets run, but the server program
doesn't. It's like it never calls the server-side program. If
someone could take a look
I'm thinking that the problem might be in what external scripts I'm
linking to. When I'm utilizing grid as subgrid, should I include
anything other than JQGrid/js/grid.subgrid.js?
I'm thinking that the problem might be in what external scripts I'm
linking to. When I'm utilizing grid as subgrid, should I include
anything other than JQGrid/js/grid.subgrid.js?
Hi. In one of my functions, I would like to test the value of a
certain field with an id="zipCode". Here is my current code:
function retrieveCityState()
{
if ($('#zipCode').value.length > 4)
{
...
}
}
This test doesn't seem to work. How do I correctly handle this using
JQuery? Tha
Hi. I'm relatively new to JQGrid, and I'm trying to create my first
grid that is loaded based on what the user chooses in a select box.
I've gotten it working for the first option that they choose.
However, after the grid is populated, I cannot get the data to change
by selecting a different opti
22 matches
Mail list logo