Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9182123
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T18:29:10+00:00 2026-06-17T18:29:10+00:00

I was driven by this problem to crazy, I am working on an asp.net

  • 0

I was driven by this problem to crazy, I am working on an asp.net web project, so I use facebox to make a page popup, the popup page is only a confirmation, users need to click confirm button, then I need to delete an option from a select which has been used jquery chosen.js to translate.
On the main page, the select

<select>
  <option value="1">1</option>
  <option value="2">2</option>
  <option value="3">3</option>
</select>

On the popup page, I call a js method

        var acqlistSelect = $("#selectId", window.parent.document);
        var acqlistSelectIndex = acqlistSelect.prop("selectedIndex");

        $("#selectId option", window.parent.document).eq(acqlistSelectIndex).remove();

        acqlistSelect.chosen({disable_search: true}).change();
        acqlistSelect.trigger("liszt:updated");

And you know the chosen selected li has not been deleted. But if I call the similar method on the main page itself, like

     var acqlistSelectIndex = $("#selectId").prop("selectedIndex");
     $('#selectId option').eq(acqlistSelectIndex).remove();
     $('#selectId').chosen().change();
     $("#selectId").trigger("liszt:updated");

It works perfectly, the chosen select li has been removed. Any idea. really appreciate it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T18:29:11+00:00Added an answer on June 17, 2026 at 6:29 pm

    OK,I have figured out how to do that, I added some breakpoint on the chosen event liszt:updated, and i found out when I run the code

        var acqlistSelect = $("#selectId", window.parent.document);
        var acqlistSelectIndex = acqlistSelect.prop("selectedIndex");
    
        $("#selectId option", window.parent.document).eq(acqlistSelectIndex).remove();
    
        acqlistSelect.chosen({disable_search: true}).change();
        acqlistSelect.trigger("liszt:updated");
    

    Actually it didn’t hit the breakpoint, but the js method on the main page did it, so I call

    parent.UpdateMethod();
    

    from the popup page, and it did hit it. good. Done

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This problem has driven me crazy, it's been 5 days I'm trying to solve
this problem has driven me crazy and I really need you guys help. I
OK, this begins to drive me crazy. I have an asp.net webapp. Pretty straightforward,
I followed this link to gzip my php driven website It's working fine but
I'm working on a project where I use a google map. I use HTML5
I'm being driven crazy by a stupidly simple problem that is eating up my
I have a problem with Ti.Geolocation that drives me crazy. Only using IOS platform
This problem has driven me mad for over a day now. I can create
This problem has driven me nuts and I'm looking for insight into best way
I have this problem that drives me crazy. All i want is just check

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.