?
Solved

sharepoint dialog can't get jquery to select tr

Posted on 2013-05-14
3
Medium Priority
?
658 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 58

Accepted Solution

by:
Gary earned 2000 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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
These days socially coordinated efforts have turned into a critical requirement for enterprises.
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
Suggested Courses

770 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