Link to home
Start Free TrialLog in
Avatar of jackjohnson44
jackjohnson44

asked on

sharepoint dialog can't get jquery to select tr

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();
ASKER CERTIFIED SOLUTION
Avatar of Gary
Gary
Flag of Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jackjohnson44
jackjohnson44

ASKER

Thanks, but the issue was that I was working in an iFrame.

This was the solution.

 $(".ms-dlgFrame").contents().find("#ctl00_PlaceHolderMain_ifsSendEmail").hide();
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.