Subject: [jQuery] How to text inside <caption> Tag of a Table? - msg#02266
List: jQuery
Hi,
how can i the text inside a <caption> Tag of a table?
I am iteration though elements with this code:
var $elements = $('table');
$elements.each(function(){
// here i want to get the text inside the caption tag inside THIS
element ...
}
Was this page helpful?
Thread at a glance:
Previous Message by Date:
click to view message preview
[jQuery] jqgrid - pager in add inline form
Hi
I'm trying to add next/prev buttons in the default add in form of a
jqgrid. Do you have any idea or example to help me? I could add my own
buttons, but I'd like to call the same function as framework to
navigate...
Thanks in advance.
Cyril
Next Message by Date:
click to view message preview
[jQuery] Re: Superfish - Multiple Columns
On Nov 22, 11:25 am, Charlie <charlie...@xxxxxxxxx> wrote:
> : simplest case -- you can put just about any element into an LI, , floating
> your internal elements with 1/2 the width of the LI/UL they are in will make
> 2columns
> Chris wrote:How would you useSuperfishto make a dropdown menu that
> containsmultiplecolumnsof menu items?
Thanks, you're right. Turned out to be entirely a CSS/HTML issue.
Previous Message by Thread:
click to view message preview
[jQuery] jqgrid - pager in add inline form
Hi
I'm trying to add next/prev buttons in the default add in form of a
jqgrid. Do you have any idea or example to help me? I could add my own
buttons, but I'd like to call the same function as framework to
navigate...
Thanks in advance.
Cyril
Next Message by Thread:
click to view message preview
[jQuery] Re: How to text inside <caption> Tag of a Table?
On Nov 30, 6:43 am, "SharepointMag [yb]"
<sharepoint...@xxxxxxxxxxxxxx> wrote:
> var $elements = $('table');
> $elements.each(function(){
> // here i want to get the text inside the caption tag inside THIS element ...
> }
var captionText = $("caption", this).text();
The second parameter to the "$" function is a context to search in.
In this case, "this" is the current table element, exactly what you
want for a context. The following would also work, and I don't know
if there is any real internal difference between them:
var captionText = $(this).find("caption").text()
Cheers,
-- Scott