show modal using jQuery

  • hi all

    I have to show modal on product text hover. and there are about 1000 products. so to avoid adding 1000 modals I want to use 1 modal and when particular text is hovered than using jquery, modal is shown with data according to hovered text. I am successful in running following jquery
    jQuery(“.btn123”).click(function(){
    jQuery(“.txt123”).hide(1000);
    });

    but to show modal when i run following. nothing happens on button click.

    jQuery(“.btn123”).click( function() {
    jQuery(“.modal123”).modal({
    show: true
    });
    });

    Please guide me whats doing wrong

    The blog I need help with is: (visible only to logged in users)

  • Hi there,

    Looks like you’re in the wrong forum. It appears that you’re using the self-hosted version of WordPress and you need to seek help at the WordPress.org forums:

    https://wordpress.org/support/forums/

    These forums are for WordPress.com hosted sites only. If you want to know more about the differences between WordPress.com and WordPress.org you can read this document:

    WordPress.com vs. WordPress.org

  • The topic ‘show modal using jQuery’ is closed to new replies.