v3.24.4
Label Element Value
Risk Return Abstract rr_RiskReturnAbstract  
Registrant Name dei_EntityRegistrantName JOHN HANCOCK FUNDS II
Prospectus Date rr_ProspectusDate Jan. 01, 2025
Class NAV | Science & Technology Fund  
Risk Return Abstract rr_RiskReturnAbstract  
Risk/Return [Heading] rr_RiskReturnHeading <span style="color:#000000;font-family:Arial Narrow;font-size:24pt;">John Hancock Science & Technology Fund</span>
Objective [Heading] rr_ObjectiveHeading <span style="color:#000000;font-family:Arial Narrow;font-size:10pt;font-weight:bold;">Investment objective</span>
Objective, Primary [Text Block] rr_ObjectivePrimaryTextBlock To seek long-term growth of capital. Current income is incidental to the fund’s objective.
Expense [Heading] rr_ExpenseHeading <span style="color:#000000;font-family:Arial Narrow;font-size:10pt;font-weight:bold;">Fees and expenses</span>
Expense Narrative [Text Block] rr_ExpenseNarrativeTextBlock This table describes the fees and expenses you may pay if you buy, hold, and sell shares of the fund. You may pay other fees, such as brokerage commissions and other fees to financial intermediaries, which are not reflected in the tables and examples below.
Shareholder Fees Caption [Text] rr_ShareholderFeesCaption <span style="color:#000000;font-family:Arial Narrow;font-size:8pt;font-weight:bold;margin-left:0.0pt;">Shareholder fees (%) </span><span style="color:#000000;font-family:Arial Narrow;font-size:8pt;margin-left:0.0pt;">(fees paid directly from your investment)</span>
Operating Expenses Caption [Text] rr_OperatingExpensesCaption <span style="font-family:Arial Narrow;font-size:8pt;font-weight:bold;margin-left:0.0pt;">Annual fund operating expenses (%) </span><span style="font-family:Arial Narrow;font-size:8pt;margin-left:0.0pt;">(expenses that you pay each year as a percentage of the value of your investment)</span>
Fee Waiver or Reimbursement over Assets, Date of Termination rr_FeeWaiverOrReimbursementOverAssetsDateOfTermination <span style="font-family:Arial Narrow;font-size:8pt;">July 31, 2026</span>
Portfolio Turnover [Heading] rr_PortfolioTurnoverHeading <span style="color:#000000;font-family:Arial Narrow;font-size:10pt;font-weight:bold;">Portfolio turnover</span>
Portfolio Turnover [Text Block] rr_PortfolioTurnoverTextBlock The fund pays transaction costs, such as commissions, when it buys and sells securities (or “turns over” its portfolio). A higher portfolio turnover rate may indicate higher transaction costs and may result in higher taxes when fund shares are held in a taxable account. These costs, which are not reflected in annual fund operating expenses or in the example, affect the fund’s performance. During its most recent fiscal year, the fund’s portfolio turnover rate was 297% of the average value of its portfolio.
Portfolio Turnover, Rate rr_PortfolioTurnoverRate 297.00%
Expense Example [Heading] rr_ExpenseExampleHeading <span style="color:#000000;font-family:Arial Narrow;font-size:10pt;font-weight:bold;">Expense example</span>
Expense Example Narrative [Text Block] rr_ExpenseExampleNarrativeTextBlock This example is intended to help you compare the cost of investing in the fund with the cost of investing in other mutual funds. Please see below a hypothetical example showing the expenses of a $10,000 investment for the time periods indicated and then assuming you sell all of your shares at the end of those periods. The example assumes a 5% average annual return and that fund expenses will not change over the periods. Although your actual costs may be higher or lower, based on these assumptions, your costs would be:
Strategy [Heading] rr_StrategyHeading <span style="color:#000000;font-family:Arial Narrow;font-size:10pt;font-weight:bold;">Principal investment strategies</span>
Strategy Narrative [Text Block] rr_StrategyNarrativeTextBlock Under normal market conditions, the fund invests at least 80% of its net assets (plus any borrowings for investment purposes) in the common stocks of companies expected to benefit from the development, advancement, and/or use of science and technology. For purposes of satisfying this requirement, common stock may include equity-linked notes and derivatives relating to common stocks, such as options on equity-linked notes. Some industries likely to be represented in the fund include: ●information technology including hardware, software, semiconductors and technology equipment ●telecommunications equipment and services ●media including advertising, broadcasting, cable and satellite, movies, entertainment, publishing and information services ●environmental services ●internet commerce and advertising ●life sciences and health care, including pharmaceuticals, health care equipment and services, and biotechnology ●chemicals and synthetic materials ●defense and aerospace ●alternative energy While most of the fund’s assets are invested in U.S. common stocks, the fund may also purchase other types of securities, including U.S. dollar- and foreign currency-denominated foreign securities, convertible stocks and bonds, and warrants, and use futures and options, in keeping with the fund’s investment objective. Stock selection for the fund generally reflects a growth approach based on an assessment of a company’s fundamental prospects for above-average earnings, rather than on a company’s size. As a result, fund holdings can range from securities of small companies developing new technologies to securities of blue chip firms with established track records. The fund may also invest in companies that are expected to benefit from technological advances even if they are not directly involved in research and development. The fund may invest in suitable technology companies through initial public offerings (IPOs). The fund holds a certain portion of its assets in money market reserves, which can consist of shares of the T. Rowe Price Government Reserve Fund (or any other internal T. Rowe Price money market fund) as well as U.S. dollar- and foreign currency denominated money market securities, including repurchase agreements, in the two highest rating categories, maturing in one year or less. The fund may invest reserves in U.S. dollars and foreign currencies. The fund may sell securities for a variety of reasons such as to secure gains, limit losses or redeploy assets into more promising opportunities. The fund may invest up to 10% of its total assets in hybrid instruments. Hybrid instruments are a type of high-risk derivative which can combine the characteristics of securities, futures and options. Such securities may bear interest or pay dividends at below market (or even relatively nominal) rates. In pursuing the fund’s investment objective, a subadvisor has the discretion to purchase some securities that do not meet its normal investment criteria, as described above, when it perceives an unusual opportunity for gain. These special situations might arise when a manager believes a security could increase in value for a variety of reasons including a change in management, an extraordinary corporate event, a new product introduction or innovation, or a favorable competitive development. The fund’s investment process may, at times, result in a higher-than-average portfolio turnover ratio and increased trading expenses. The fund is a non-diversified fund, which means that it may invest in a smaller number of issuers than a diversified fund and may invest more of its assets in the securities of a single issuer.
Risk [Heading] rr_RiskHeading <span style="color:#000000;font-family:Arial Narrow;font-size:10pt;font-weight:bold;">Principal risks</span>
Bar Chart and Performance Table [Heading] rr_BarChartAndPerformanceTableHeading <span style="color:#000000;font-family:Arial Narrow;font-size:10pt;font-weight:bold;">Past performance</span>
Performance Narrative [Text Block] rr_PerformanceNarrativeTextBlock The following information illustrates the variability of the fund’s returns and provides some indication of the risks of investing in the fund by showing changes in the fund’s performance from year to year and by showing how the fund’s average annual returns compared with a broad-based securities market index. Past performance (before and after taxes) does not indicate future results. The S&P North American Technology Index shows how the fund’s performance compares against the returns of similar investments. All figures assume dividend reinvestment. Performance information is updated daily, monthly, and quarterly and may be obtained by calling 800-344-1029 between 8:00 a.m. and 7:00 p.m., Eastern time, on most business days.A note on performanceEffective June 23, 2022, T. Rowe Price Associates, Inc. (T. Rowe Price) became the fund's sole subadvisor. Prior to June 23, 2022, the fund was managed by both T. Rowe Price and a different subadvisor. The performance presented prior to June 23, 2022 should not be attributed to the sole management of the fund by T. Rowe Price. The fund's performance shown below might have differed materially had T. Rowe Price solely managed the fund prior to June 23, 2022.Please note that after-tax returns reflect the highest individual federal marginal income-tax rate in effect as of the date provided and do not reflect any state or local taxes. Your actual after-tax returns may be different. After-tax returns are not relevant to shares held in an IRA, 401(k), or other tax-advantaged investment plan.
Performance Information Illustrates Variability of Returns [Text] rr_PerformanceInformationIllustratesVariabilityOfReturns <span style="font-family:Arial Narrow;font-size:9pt;">The following information illustrates the variability of the fund’s returns and provides some indication of the risks of investing in the fund by showing changes in the fund’s performance from year to year and by showing how the fund’s average annual returns compared with a broad-based securities market index. </span>
Performance Availability Phone [Text] rr_PerformanceAvailabilityPhone <span style="font-family:Arial Narrow;font-size:9pt;">800-344-1029 between 8:00 </span><span style="font-family:Arial Narrow;font-size:9pt;font-variant:small-caps;">a.m.</span><span style="font-family:Arial Narrow;font-size:9pt;"> and 7:00</span><span style="font-family:Arial Narrow;font-size:9pt;line-height:12pt;"> </span><span style="font-family:Arial Narrow;font-size:9pt;font-variant:small-caps;">p.m.</span><span style="font-family:Arial Narrow;font-size:9pt;">, Eastern time, on most business days.</span>
Performance Past Does Not Indicate Future [Text] rr_PerformancePastDoesNotIndicateFuture <span style="font-family:Arial Narrow;font-size:9pt;">Past performance (before and after taxes) does not indicate future results. </span>
Bar Chart [Heading] rr_BarChartHeading <span style="font-family:Arial Narrow;font-size:9pt;font-weight:bold;">Calendar year total returns (%)—Class NAV</span>
Bar Chart Closing [Text Block] rr_BarChartClosingTextBlock Year-to-date total return through:Q3 202425.84%Best quarter:Q2 202032.74%Worst quarter:Q2 2022-22.49%
Performance Table Heading rr_PerformanceTableHeading <span style="font-family:Arial Narrow;font-size:8pt;font-weight:bold;margin-left:0.0pt;">Average annual total returns (%)—as of 12/31/2023</span>
Performance Table Uses Highest Federal Rate rr_PerformanceTableUsesHighestFederalRate <span style="color:#000000;font-family:Arial Narrow;font-size:9pt;">Please note that after-tax returns reflect the highest individual federal marginal income-tax rate in effect as of the date provided and do not reflect any state or local taxes.</span>
Performance Table Not Relevant to Tax Deferred rr_PerformanceTableNotRelevantToTaxDeferred <span style="color:#000000;font-family:Arial Narrow;font-size:9pt;"> Your actual after-tax returns may be different. After-tax returns are not relevant to shares held in an IRA, 401(k), or other </span><span style="color:#000000;font-family:Arial Narrow;font-size:9pt;">tax-advantaged investment plan.</span>
Class NAV | Science &amp; Technology Fund | Risk Nondiversified Status [Member]  
Risk Return Abstract rr_RiskReturnAbstract  
Risk [Text Block] rr_RiskTextBlock Non-diversified risk.  Adverse events affecting a particular issuer or group of issuers may magnify losses for non-diversified funds, which may invest a large portion of assets in any one issuer or a small number of issuers.
Class NAV | Science &amp; Technology Fund | Risk Lose Money [Member]  
Risk Return Abstract rr_RiskReturnAbstract  
Risk [Text Block] rr_RiskTextBlock Many factors affect performance, and fund shares will fluctuate in price, meaning you could lose money.
Class NAV | Science &amp; Technology Fund | Risk Not Insured Depository Institution [Member]  
Risk Return Abstract rr_RiskReturnAbstract  
Risk [Text Block] rr_RiskTextBlock An investment in the fund is not a bank deposit and is not insured or guaranteed by the Federal Deposit Insurance Corporation or any other government agency.
Class NAV | Science &amp; Technology Fund | Convertible Securities Risk [Member]  
Risk Return Abstract rr_RiskReturnAbstract  
Risk [Text Block] rr_RiskTextBlock Convertible securities risk.  Convertible securities are subject to certain risks of both equity and debt securities. The market values of convertible securities tend to fall as interest rates rise and rise as interest rates fall. As the market price of underlying common stock declines below the conversion price, the market value of the convertible security tends to be increasingly influenced by its yield.
Class NAV | Science &amp; Technology Fund | Credit And Counterparty Risk [Member]  
Risk Return Abstract rr_RiskReturnAbstract  
Risk [Text Block] rr_RiskTextBlock Credit and counterparty risk.  The counterparty to an over-the-counter derivatives contract or a borrower of fund securities may not make timely payments or otherwise honor its obligations.
Class NAV | Science &amp; Technology Fund | Currency Risk [Member]  
Risk Return Abstract rr_RiskReturnAbstract  
Risk [Text Block] rr_RiskTextBlock Currency risk.  Fluctuations in exchange rates may adversely affect the U.S. dollar value of a fund’s investments. Foreign currencies may decline in value, which could negatively impact performance.
Class NAV | Science &amp; Technology Fund | Economic And Market Events Risk [Member]  
Risk Return Abstract rr_RiskReturnAbstract  
Risk [Text Block] rr_RiskTextBlock Economic and market events risk.  Events in the U.S. and global financial markets, including actions taken by the U.S. Federal Reserve or foreign central banks to stimulate or stabilize economic growth, may at times result in unusually high market volatility, which could negatively impact performance. Reduced liquidity in credit and fixed-income markets could adversely affect issuers worldwide. Banks and financial services companies could suffer losses if interest rates rise or economic conditions deteriorate.
Class NAV | Science &amp; Technology Fund | Equity Securities Risk [Member]  
Risk Return Abstract rr_RiskReturnAbstract  
Risk [Text Block] rr_RiskTextBlock Equity securities risk.  The price of equity securities may decline due to changes in a company’s financial condition or overall market conditions. Growth company securities may fluctuate more in price than other securities because of the greater emphasis on earnings expectations.
Class NAV | Science &amp; Technology Fund | Foreign Securities Risk [Member]  
Risk Return Abstract rr_RiskReturnAbstract  
Risk [Text Block] rr_RiskTextBlock Foreign securities risk.  Less information may be publicly available regarding foreign issuers, including foreign government issuers. Foreign securities may be subject to foreign taxes and may be more volatile than U.S. securities. Currency fluctuations and political and economic developments may adversely impact the value of foreign securities.
Class NAV | Science &amp; Technology Fund | Hong Kong Stock Connect Program (Stock Connect) Risk [Member]  
Risk Return Abstract rr_RiskReturnAbstract  
Risk [Text Block] rr_RiskTextBlock Hong Kong Stock Connect Program (Stock Connect) risk.  Trading in China A-Shares through Stock Connect, a mutual market access program that enables foreign investment in the People’s Republic of China (PRC), is subject to certain restrictions and risks. Securities listed on Stock Connect may lose purchase eligibility, which could adversely affect the fund’s performance. Trading through Stock Connect is subject to trading, clearance, and settlement procedures that may continue to develop as the program matures. Any changes in laws, regulations and policies applicable to Stock Connect may affect China A-Share prices. These risks are heightened by the underdeveloped state of the PRC’s investment and banking systems in general.
Class NAV | Science &amp; Technology Fund | Greater China Risk [Member]  
Risk Return Abstract rr_RiskReturnAbstract  
Risk [Text Block] rr_RiskTextBlock Greater China risk.  Investments in the Greater China region may be subject to less developed trading markets, acute political risks such as possible negative repercussions resulting from China’s relationship with Taiwan or Hong Kong, and restrictions on monetary repatriation or other adverse government actions. For example, a government may restrict investment in companies or industries considered important to national interests, or intervene in the financial markets, such as by imposing trading restrictions, or banning or curtailing short selling. A small number of companies and industries may generally represent a relatively large portion of the Greater China market as a whole.
Class NAV | Science &amp; Technology Fund | Hedging Derivatives And Other Strategic Transactions Risk [Member]  
Risk Return Abstract rr_RiskReturnAbstract  
Risk [Text Block] rr_RiskTextBlock Hedging, derivatives, and other strategic transactions risk.  Hedging, derivatives, and other strategic transactions may increase a fund’s volatility and could produce disproportionate losses, potentially more than the fund’s principal investment. Risks of these transactions are different from and possibly greater than risks of investing directly in securities and other traditional instruments. Under certain market conditions, derivatives could become harder to value or sell and may become subject to liquidity risk (i.e., the inability to enter into closing transactions). Derivatives and other strategic transactions that the fund intends to utilize include: futures contracts, equity-linked notes (equity-linked notes generally reflect the risks associated with their underlying securities, depend on the credit of the note's issuer, may be privately placed, and may have a limited secondary market), and options. Futures contracts and options generally are subject to counterparty risk.
Class NAV | Science &amp; Technology Fund | High Portfolio Turnover Risk [Member]  
Risk Return Abstract rr_RiskReturnAbstract  
Risk [Text Block] rr_RiskTextBlock High portfolio turnover risk.  Trading securities actively and frequently can increase transaction costs (thus lowering performance) and taxable distributions.
Class NAV | Science &amp; Technology Fund | Hybrid instrument risk [Member]  
Risk Return Abstract rr_RiskReturnAbstract  
Risk [Text Block] rr_RiskTextBlock Hybrid instrument risk.  Hybrid instruments (a type of potentially high-risk derivative) combine the elements of futures contracts or options with those of debt, preferred equity or a depository instrument. Hybrid instruments entail greater market risk and may be more volatile than traditional debt instruments, may bear interest or pay preferred dividends at below-market rates, and may be illiquid. The risks of investing in hybrid instruments are a combination of the risks of investing in securities, options, futures, and currencies.
Class NAV | Science &amp; Technology Fund | Information Technology Companies Risk [Member]  
Risk Return Abstract rr_RiskReturnAbstract  
Risk [Text Block] rr_RiskTextBlock Information technology companies risk.  Information technology companies can be significantly affected by rapid obsolescence, short product cycles, competition from new market entrants, and heightened cybersecurity risk, among other factors.
Class NAV | Science &amp; Technology Fund | Initial Public Offerings Risk [Member]  
Risk Return Abstract rr_RiskReturnAbstract  
Risk [Text Block] rr_RiskTextBlock Initial public offerings (IPOs) risk.  IPO share prices are frequently volatile and may significantly impact fund performance.
Class NAV | Science &amp; Technology Fund | Investment company securities risk [Member]  
Risk Return Abstract rr_RiskReturnAbstract  
Risk [Text Block] rr_RiskTextBlock Investment company securities risk.  Fund shareholders indirectly bear their proportionate share of the expenses of any investment company in which the fund invests. The total return on such investments will be reduced by the operating expenses and fees of such other investment companies, including advisory fees.
Class NAV | Science &amp; Technology Fund | Large Company Risk [Member]  
Risk Return Abstract rr_RiskReturnAbstract  
Risk [Text Block] rr_RiskTextBlock Large company risk.  Larger companies may grow more slowly than smaller companies or be slower to respond to business developments. Large-capitalization securities may underperform the market as a whole.
Class NAV | Science &amp; Technology Fund | Liquidity Risk [Member]  
Risk Return Abstract rr_RiskReturnAbstract  
Risk [Text Block] rr_RiskTextBlock Liquidity risk.  The extent (if at all) to which a security may be sold or a derivative position closed without negatively impacting its market value may be impaired by reduced market activity or participation, legal restrictions, or other economic and market impediments.
Class NAV | Science &amp; Technology Fund | Operational And Cybersecurity Risk [Member]  
Risk Return Abstract rr_RiskReturnAbstract  
Risk [Text Block] rr_RiskTextBlock Operational and cybersecurity risk.  Cybersecurity breaches may allow an unauthorized party to gain access to fund assets, customer data, or proprietary information, or cause a fund or its service providers to suffer data corruption or lose operational functionality. Similar incidents affecting issuers of a fund’s securities may negatively impact performance. Operational risk may arise from human error, error by third parties, communication errors, or technology failures, among other causes.
Class NAV | Science &amp; Technology Fund | Repurchase Agreement Risk [Member]  
Risk Return Abstract rr_RiskReturnAbstract  
Risk [Text Block] rr_RiskTextBlock Repurchase agreements risk.  The risk of a repurchase agreement transaction is limited to the ability of the seller to pay the agreed-upon sum on the delivery date. In the event of bankruptcy or other default by the seller, the instrument purchased may decline in value, interest payable on the instrument may be lost and there may be possible difficulties and delays in obtaining collateral and delays and expense in liquidating the instrument.
Class NAV | Science &amp; Technology Fund | Sector Risk [Member]  
Risk Return Abstract rr_RiskReturnAbstract  
Risk [Text Block] rr_RiskTextBlock Sector risk.  When a fund focuses its investments in certain sectors of the economy, its performance may be driven largely by sector performance and could fluctuate more widely than if the fund were invested more evenly across sectors.
Class NAV | Science &amp; Technology Fund | Small And Mid Sized Company Risk [Member]  
Risk Return Abstract rr_RiskReturnAbstract  
Risk [Text Block] rr_RiskTextBlock Small and mid-sized company risk.  Small and mid-sized companies are generally less established and may be more volatile than larger companies. Small and/or mid-capitalization securities may underperform the market as a whole.
Class NAV | Science &amp; Technology Fund | Technology Companies Risk [Member]  
Risk Return Abstract rr_RiskReturnAbstract  
Risk [Text Block] rr_RiskTextBlock Technology companies risk.  Technology companies can be significantly affected by rapid obsolescence, short product cycles, competition, and government regulation, among other factors. Investments in the technology sector may be susceptible to heightened risk of cybersecurity breaches, which may allow an unauthorized party to gain access to personally identifiable information and other customer data.
Class NAV | Science &amp; Technology Fund | Warrants Risk [Member]  
Risk Return Abstract rr_RiskReturnAbstract  
Risk [Text Block] rr_RiskTextBlock Warrants risk.  The prices of warrants may not precisely reflect the prices of their underlying securities. Warrant holders do not receive dividends or have voting or credit rights. A warrant ceases to have value if not exercised prior to its expiration date.
Class NAV | Science &amp; Technology Fund | Class NAV  
Risk Return Abstract rr_RiskReturnAbstract  
Maximum front-end sales charge (load) rr_MaximumCumulativeSalesChargeOverOther none
Maximum deferred sales charge (load) rr_MaximumDeferredSalesChargeOverOther none
Management fee rr_ManagementFeesOverAssets 0.95%
Other expenses rr_OtherExpensesOverAssets 0.10%
Total annual fund operating expenses rr_ExpensesOverAssets 1.05%
Contractual expense reimbursement rr_FeeWaiverOrReimbursementOverAssets (0.01%) [1]
Total annual fund operating expenses after expense reimbursements rr_NetExpensesOverAssets 1.04%
1 year rr_ExpenseExampleYear01 $ 106
3 years rr_ExpenseExampleYear03 333
5 years rr_ExpenseExampleYear05 578
10 years rr_ExpenseExampleYear10 $ 1,282
2014 rr_AnnualReturn2014 13.62%
2015 rr_AnnualReturn2015 7.19%
2016 rr_AnnualReturn2016 8.35%
2017 rr_AnnualReturn2017 40.92%
2018 rr_AnnualReturn2018 (1.86%)
2019 rr_AnnualReturn2019 37.27%
2020 rr_AnnualReturn2020 58.21%
2021 rr_AnnualReturn2021 8.12%
2022 rr_AnnualReturn2022 (35.01%)
2023 rr_AnnualReturn2023 56.14%
Year to Date Return, Label rr_YearToDateReturnLabel <span style="font-family:Arial Narrow;font-size:8pt;font-weight:bold;margin-left:0.0pt;">Year-to-date total return through:</span>
Bar Chart, Year to Date Return, Date rr_BarChartYearToDateReturnDate Sep. 30, 2024
Bar Chart, Year to Date Return rr_BarChartYearToDateReturn 25.84%
Highest Quarterly Return, Label rr_HighestQuarterlyReturnLabel <span style="font-family:Arial Narrow;font-size:8pt;font-weight:bold;margin-left:0.0pt;">Best quarter:</span>
Highest Quarterly Return, Date rr_BarChartHighestQuarterlyReturnDate Jun. 30, 2020
Highest Quarterly Return rr_BarChartHighestQuarterlyReturn 32.74%
Lowest Quarterly Return, Label rr_LowestQuarterlyReturnLabel <span style="font-family:Arial Narrow;font-size:8pt;font-weight:bold;margin-left:0.0pt;">Worst quarter:</span>
Lowest Quarterly Return, Date rr_BarChartLowestQuarterlyReturnDate Jun. 30, 2022
Lowest Quarterly Return rr_BarChartLowestQuarterlyReturn (22.49%)
1 year rr_AverageAnnualReturnYear01 56.14%
5 year rr_AverageAnnualReturnYear05 18.97%
10 year rr_AverageAnnualReturnYear10 15.83%
Class NAV | Science &amp; Technology Fund | Return After Taxes on Distributions | Class NAV  
Risk Return Abstract rr_RiskReturnAbstract  
1 year rr_AverageAnnualReturnYear01 56.14%
5 year rr_AverageAnnualReturnYear05 11.97%
10 year rr_AverageAnnualReturnYear10 7.40%
Class NAV | Science &amp; Technology Fund | Return After Taxes on Distributions and Sale of Shares | Class NAV  
Risk Return Abstract rr_RiskReturnAbstract  
1 year rr_AverageAnnualReturnYear01 33.24%
5 year rr_AverageAnnualReturnYear05 13.91%
10 year rr_AverageAnnualReturnYear10 9.78%
Class NAV | Science &amp; Technology Fund | S&P 500 Index (reflects no deduction for fees, expenses, or taxes)  
Risk Return Abstract rr_RiskReturnAbstract  
1 year rr_AverageAnnualReturnYear01 26.29%
5 year rr_AverageAnnualReturnYear05 15.69%
10 year rr_AverageAnnualReturnYear10 12.03%
Class NAV | Science &amp; Technology Fund | S&P North American Technology Index (reflects no deduction for fees, expenses, or taxes)  
Risk Return Abstract rr_RiskReturnAbstract  
1 year rr_AverageAnnualReturnYear01 61.13%
5 year rr_AverageAnnualReturnYear05 22.22%
10 year rr_AverageAnnualReturnYear10 18.72%
[1] The advisor contractually agrees to waive a portion of its management fee and/or reimburse expenses for the fund and certain other John Hancock funds according to an asset level breakpoint schedule that is based on the aggregate net assets of all the funds participating in the waiver or reimbursement, including the fund (the participating portfolios). This waiver equals, on an annualized basis, 0.0100% of that portion of the aggregate net assets of all the participating portfolios that exceeds $75 billion but is less than or equal to $125 billion; 0.0125% of that portion of the aggregate net assets of all the participating portfolios that exceeds $125 billion but is less than or equal to $150 billion; 0.0150% of that portion of the aggregate net assets of all the participating portfolios that exceeds $150 billion but is less than or equal to $175 billion; 0.0175% of that portion of the aggregate net assets of all the participating portfolios that exceeds $175 billion but is less than or equal to $200 billion; 0.0200% of that portion of the aggregate net assets of all the participating portfolios that exceeds $200 billion but is less than or equal to $225 billion; and 0.0225% of that portion of the aggregate net assets of all the participating portfolios that exceeds $225 billion. The amount of the reimbursement is calculated daily and allocated among all the participating portfolios in proportion to the daily net assets of each participating portfolio. During its most recent fiscal year, the fund’s reimbursement amounted to 0.01% of the fund’s average daily net assets. This agreement expires on July 31, 2026, unless renewed by mutual agreement of the fund and the advisor based upon a determination that this is appropriate under the circumstances at that time.