Never mind, figured out the issue. the "return" statement has a call
that will look for label inside of the parent, not look at the parent
itself. If I want to look at the parent, I'll have to use "$(this).is
('label')". Sorry for the clutter!
On Jun 11, 1
Hi all, I have the following JS code:
$('table.tableView :inp...@readonly]').parent().filter(function() {
return !$('label', this).length;
}).addClass('readonly');
--
And the following HTML code:
an 3, 3:17 am, TimW66 wrote:
>
> > Thanks for the response. I changed the name attribute to be "save",
> > but that didn't work either.
>
> Change the name and the id, neither should have a value of "submit".
>
> > I think what's happeni
er submit function fires.
On Jan 2, 12:15 pm, Joe wrote:
> What is the code for the context menu? I have a hunch it is somewhere
> in there.
>
> Joe
>
> On Jan 2, 11:17 am, TimW66 wrote:
>
> > Thanks for the response. I changed the name attribute to be "save",
I'm just taking a shot in the dark, but have you looked at eval()? I
saw this used in a demo page, and thought it was ingenious. The text
they want to execute is shown on the screen. The JS gets the text and
calls eval() on it. This might get you what you want.
On Jan 2, 10:57 am, yellow1912
Thanks for the response. I changed the name attribute to be "save",
but that didn't work either. I think what's happening is there are
other event handlers getting executed in the for loop, and one of
those is returning a value that val gets set to, such that it doesn't
propagate to the next fun
Anyone have an idea?
On Dec 30 2008, 4:25 pm, TimW66 wrote:
> Hi all,
>
> I have a submit button, and a function tied to it via $('form').submit
> (function() { ... }); When the button is clicked, this function gets
> executed, and the data gets sent to the server. Ho
Hi all,
I have a submit button, and a function tied to it via $('form').submit
(function() { ... }); When the button is clicked, this function gets
executed, and the data gets sent to the server. However, I also call
this function via a context menu option (i.e., $('form').submit()).
Again, the
8, 6:26 pm, Ryura <[EMAIL PROTECTED]> wrote:
> $('tbody>tr:last-child>td:not(.readonly):first-
> child>input').focus().select();
>
> On Oct 28, 7:07 pm, TimW66 <[EMAIL PROTECTED]> wrote:
>
> > Hi all,
>
> > I have a table that I
Hi all,
I have a table that I will usually want to focus the first input box
in the first column in the last row. Something like this:
...
<-- selects this one
And I use this to do that part:
$('tb
Hi all,
I have a table that I will usually want to focus the first input box
in the first column in the last row. Something like this:
...
<-- selects this one
And I use this to do that part:
$('tb
You could always set the ID of the cloned row:
$rowToInsert = $parentRow.clone(true);
newId = $parentRow.attr('id') + '_cloned';
$rowtoInsert.attr('id', newId);
On Oct 16, 5:51 pm, Felix <[EMAIL PROTECTED]> wrote:
> I have a form that allows user to add and delete rows as they desire,
> I tried
I've played around with this one:
http://malsup.com/jquery/corner/
On Oct 16, 4:19 pm, caruso_g <[EMAIL PROTECTED]> wrote:
> I searched for a plugin to round corners using jQuery.
> I tried any plugin I was able to find but sadly none of them was able
> to work on IE 6.
> Some of them didn't even
;
> //No option to start with
>
>
> javascript:
> Then make your javascript add the first option. If it is the first in
> the list then it will be selected by default so there is no need to
> add selected="selected"
>
> Hope this helps,
> Johnie Karr
>
The input needs to have an ID, jQuery can't reference by the name
attribute using the style you specified. You might also try:
$("#form input['name=Prefix']").val("Testing");
Here's more on selecting by attribute:
http://docs.jquery.com/Selectors/attributeEquals#attributevalue
And for more on s
n Zaefferer" <[EMAIL PROTECTED]>
wrote:
> Forcing focus on a field is always a bad idea. Consider other means,
> like disabling fields.
>
> Jörn
>
> On Tue, Oct 14, 2008 at 9:23 PM, TimW66 <[EMAIL PROTECTED]> wrote:
>
> > Sorry to hijack a topic, but I to
Sorry to hijack a topic, but I too am writing some custom validation,
and I am running into a problem. I have a table form where after data
is entered in the first field on the row, a new blank row will be
added to the bottom of the table. I want to keep the user from
entering a duplicate value
Anyone?
On Oct 13, 6:08 pm, TimW66 <[EMAIL PROTECTED]> wrote:
> I'm seeing some odd behavior in IE with my SELECT boxes. In the
> static HTML, I have the following:
>
> Select Type
>
> --- Type ---
>
>
> In JavaScript, I have the fo
I'm seeing some odd behavior in IE with my SELECT boxes. In the
static HTML, I have the following:
Select Type
--- Type ---
In JavaScript, I have the following:
$.get("create.do", params,
function(data) {
if( $('option', idSel).length > 0 ) {
I have a form with multiple rows. On each row, the first field is a
key field; that is, it can't be duplicated on any other row. The
comparison is working, as I currently have an alert() if there's a
duplicate. What I want to happen is if there is a duplicate, focus
the field the user just chan
20 matches
Mail list logo