Ok, I think I got it:
var the_val = ob.clone().find("span").remove();
alert(the_val.html());
On Nov 22, 12:12 am, briandichiara <[EMAIL PROTECTED]> wrote:
> I'm returning a jQuery object that has class="type"> inside as .html().
>
> So how do i get r
I'm returning a jQuery object that has inside as .html().
So how do i get rid of the span class="type" from the object and then
place the rest of the HTML into another element?
Example:
function otherFunction(){
doFunction($(myObj));
}
function doFunction(ob){
alert(ob.html()); //
This is what I have right now, which has been revised a bit, but i'm
sure there's a smarter way:
function sortAction(e,ui,a){
var proceed = true;
var el_id = $(ui.item).attr('id');
id = el_id.replace("ele-","");
var params = "action=update_menu_item&jsa="+a+"&item_
In the case you are trying to use it, the first instance of "this" is
referring to the root function object. this.hello is an item inside
that object. when you create the other 2 functions, "this" no longer
means what it did originally. If you want to pass the information of
"this", you need to re
I am having trouble figuring out the difference between all of these
events and need to know the best one to use. I'm using 2 lists and the
ability to drag back and forth between them using connectWith. When an
item goes from the left list to the right list, I have a receive
function that simply m
I'm trying to make a Menu builder and having trouble finding a plugin
to do what I need. On the left is the current menu. It's a nested
list. On the right is a list of pages not appearing in the menu. I
need
1. The ability to sort the menu on the left in a nested manner, so
items can contain sub-
What could be the problem here? I am using the easing plugin to have a
panel slide up out of sight, or down into sight and it was working
before, but now it's not. The panel just quickly goes to the desired
position with no effects. Would other elements on the page affect
this? I am using the late
Well, I was actually looking for a more specific answer, however I did
find out through trial and error that it works sort of like this:
$.ajax({ success: function(response){
if(response.indexOf('
Hi,
I would like my AJAX Request to function like this:
if empty, all good, proceed.
if scripts, not good, execute the script.
if no scripts, but something in response, alert the text (some kind of
error).
Reason I want this is when the user tries to execute an action that
requires them to be l
e.js
>
> Here's the documentation:
>
> http://docs.jquery.com/UI/Effects/ColorAnimations
>
> - Richard
>
> Richard D. Worthhttp://rdworth.org/
>
> On Fri, Jun 20, 2008 at 11:18 AM, briandichiara <[EMAIL PROTECTED]>
> wrote:
>
>
>
> > At the end of my
At the end of my Ajax request, I'd like to highlight a table row, so
to speak. Why doesn't this work:
id = 5
success: function(e){
$("#address"+id).css("background-color","#F9FFCF");
$("#address"+id).animate({backgroundColor:'#FFF'}, 800);
}
The first line will work, but the 2nd
.
>
> > -- Josh
>
> > - Original Message -
> > From: "briandichiara" <[EMAIL PROTECTED]>
> > To: "jQuery (English)"
> > Sent: Thursday, May 08, 2008 1:58 PM
> > Subject: [jQuery] Re: Getting Parent Element using "
ok, i'm not sure if this is the easiest way, however, this is how I
got the form action in the following HTML:
= $(this).parent().attr("action");
>
> });
>
> This binds the anonymous function to set the variable formAction, to the
> change event of the select.
>
> -- Josh
>
> - Original Message -
> From: "briandichiara" <[EMAIL PROTECTED]>
&
= $(this).parent().attr("action");
>
> });
>
> This binds the anonymous function to set the variable formAction, to the
> change event of the select.
>
> -- Josh
>
> - Original Message -
> From: "briandichiara" <[EMAIL PROTECTED]>
&
gt; onchange inline like so:
>
> var formAction = null;
>
> $("select[name=some_name]").change(function() {
> formAction = $(this).parent().attr("action");
>
> });
>
> This binds the anonymous function to set the variable formAction, to the
>
elect[name=some_name]").change(function() {
> formAction = $(this).parent().attr("action");
>
> });
>
> This binds the anonymous function to set the variable formAction, to the
> change event of the select.
>
> -- Josh
>
> - Original Message -
&g
I have a page where I need to get a parent forms action after firing
the onchange event on a select, like so:
I can't figure out how to use "this" + a selector with jQuery,
I've tried
function changeAction(elm){
var formAction = elm.$(":parent form").attr("action");
}
I really have n
18 matches
Mail list logo