Solved

sharepoint dialog can't get jquery to select tr

Posted on 2013-05-14
3
645 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 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

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 how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how to customize the background color and font color of highlighted text using the ::selection element in CSS Begin by defining the selected text as an element in CSS by typing "::selection": Style the ::selection…
The viewer will learn how to dynamically set the form action using jQuery.

717 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