Solved

sharepoint dialog can't get jquery to select tr

Posted on 2013-05-14
3
602 Views
Last Modified: 2013-05-18
I have a tr in a SharePoint dialog.  I can view it in firebug, but when I try to use the selector in the console window, it will not select the element.

How can I use jquery to select this tr in a SharePoint dialog.

<tr id="ctl00_PlaceHolderMain_ifsSendEmail">
                  <td valign="top" class="ms-descriptiontext">

This shows 0
alert($("ctl00_PlaceHolderMain_ifsSendEmail").length);

This does nothing:
$('.ctl00_PlaceHolderMain_ifsSendEmail').hide();
0
Comment
Question by:jackjohnson44
  • 2
3 Comments
 
LVL 58

Accepted Solution

by:
Gary earned 500 total points
ID: 39165197
Notice the #
alert($("#ctl00_PlaceHolderMain_ifsSendEmail").length);

$('#ctl00_PlaceHolderMain_ifsSendEmail').hide();
0
 

Author Comment

by:jackjohnson44
ID: 39165240
Thanks, but the issue was that I was working in an iFrame.

This was the solution.

 $(".ms-dlgFrame").contents().find("#ctl00_PlaceHolderMain_ifsSendEmail").hide();
0
 

Author Comment

by:jackjohnson44
ID: 39177708
I've requested that this question be closed as follows:

Accepted answer: 0 points for jackjohnson44's comment #a39165240

for the following reason:

This was the solution.
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Summernote and form validation 10 46
ajax form sumbit 3 30
Problem to page 4 27
SharePoint 2013 Relational Database 8 23
Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
This article discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how to style a decorative dropcap for the first letter in a paragraph using CSS. In CSS, create a new paragraph class by typing "p.fancy": Then, to style only the first letter of the first sentence, include the ps…
The viewer will learn how to dynamically set the form action using jQuery.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now