= function(){return this.trim().etc...}
The way you've done it works, but in the same way 'trim' works, i.e.
you have to pass the string to the function:
$.slug($('#form_element').val());
On Oct 21, 3:05 pm, Kerry wrote:
I've been looking around and besides my be
I've been looking around and besides my best efforts I haven't been
able to figure it out.
All the function extending I see extends on an _object_.
I want to extend on a string.
/**
* Returns a slug version of a string
*/
jQuery.extend ({
slug: function( text ) {
ret
Hi, I have a problem i've been trying to solve for a while. I have a
table that is dynamically generated. I need to be able to hide and
show certain table rows. for e.g.
DATA1
gt; $("#box").fadeOut();
> });
> });
>
> also, you're not linking the jquery lib sucessfully. replace ...
>
>
>
> ... with ...
>
> http://ajax.googleapis.com/ajax/</a>
> libs/jquery/1.3.1/jquery.min
Hi I'm new to Jquery and trying a simple example before I start
working with it. Can someone please help me understand why the
following is not working. Firebug repport '$ is not defined'.
jquery-1.3.2.min.js is in the same directory as the web page as well.
#box
{
Hi I'm using Eclispse for a small project and trying out Jquery for
the first time. I have downloaded the jquery-1.3.2.min.js file and
reference it as i should in my page, However the script does not seem
to work and I get a firebug error '$ is not defined'. The
jquery-1.3.2.min.js file is in the
6 matches
Mail list logo