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 8500735
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T01:01:18+00:00 2026-06-11T01:01:18+00:00

I am using jquery toastmessage http://akquinet.github.com/jquery-toastmessage-plugin/ however I have reached a limitation, and that

  • 0

I am using jquery toastmessage http://akquinet.github.com/jquery-toastmessage-plugin/ however I have reached a limitation, and that is that the plugin only allows to have one position per page. The plugin outputs the following container:

<div class="toast-container toast-position-top-right"></div>

As a workaround I am trying to change that class at run-time, ideally I would be able to create multiple of these containers and call them by ID, since I don’t want to change the plugin, I am trying to change the class at run-time after the constructor gets called by using the following code:

$().toastmessage('showToast', {
        text     : message,
        stayTime : 1500,
        sticky   : false,
        position : 'top-center',
        type     : 'notice'
    });

    $(".toast-container").removeClass(toast-position-top-right).addClass(toast-position-top-center);

also tried to use:

$("div.toast-container").removeClass(toast-position-top-right).addClass(toast-position-top-center);

I think I am using the selctor wrong, because i get this error:

Uncaught ReferenceError: toast is not defined

How do I properly select that class? Any alternative ideas how to enable multiple positions? TIA

  • 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-11T01:01:19+00:00Added an answer on June 11, 2026 at 1:01 am

    Fixed it by using two functions that toggle the class attribute:

    $("*[class*='toast-position-top-center']").removeClass('toast-position-top-center').addClass('toast-position-top-right');
    
    $("*[class*='toast-position-top-right']").removeClass('toast-position-top-right').addClass('toast-position-top-center');
    

    Still not ideal, but it’s a quick workaround.

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

Sidebar

Related Questions

Using jQuery validation plugin - http://docs.jquery.com/Plugins/Validation Wanting to use the remote method on a
Using jQuery version 1.4.2 and Validation plugin version 1.8.1 I have a textbox that
Using jQuery timepickr: http://archive.plugins.jquery.com/project/jquery-timepickr Having included these files: jquery-1.7.1.min.js jquery-ui-1.8.21.custom.min.js ui.timepickr.js And getting this
Using jquery I have a clicking tab mechanism that are nothing but anchor tags
Using jQuery and given this <ul> <li> <a external=http://stackoverflow.com href=home.htm>Link 1</a> </li> <li> <a
Using jquery validation: http://docs.jquery.com/Plugins/Validation I am also validating each field on blur: //validate each
Using jquery's jqGrid plugin, I have it setup to do sorting, paging, and searching.
Using jQuery's qtip plugin, I'm trying to display hidden value (that's already rendered wher
Using jQuery validation plugin but it has no CSV validation. I have made an
Using jQuery UI , I have a tabs plugin and within tab 1 gets

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.