It is not right
location.href = "#modal";
when you need to change hash you need to use window.location.hash=”modal”
but you have another problem!
You need to initialize your plugin and use its api
Instead of this location.href = “#modal”; you need to use:
var inst = jQuery('[data-remodal-id=modal]').remodal();
inst.open()
Related Posts:
- jQuery’s .on() method combined with the submit event
- How to link WordPress heartbeat to ajax form
- jQuery Ajax passing empty parameters to my function?
- Output multi-steps form results in same page
- How to display contact form 7 form in vanilla js without jquery in frontend
- jQuery AJAX submit form
- Access-Control-Allow-Origin error sending a jQuery Post to Google API’s
- jQuery: Performing synchronous AJAX requests
- FormData append not working
- WordPress AJAX File Upload – FrontEnd
- Nonces and Cache
- How to HTML5 FormData Ajax
- Contact Form 7 Custom Post Action
- Custom Form with Ajax
- ajax – why multiple calls to wp_create_nonce() return same value?
- AJAX Implementation
- Drag and drop multiple file upload using Ajax WordPress
- How to securely add an Ajax button to a WP Admin page?
- Turn jQuery.ajax() request into XMLHttpRequest (vanilla JavaScript)
- POST from jQuery to PHP
- how to use reCaptcha v3 in wordpress custom login form?
- admin-ajax.php HTTP400: BAD REQUEST – The request could not be processed by the server due to invalid syntax
- Registration e-mail check with AJAX
- jQuery Plugin to use WordPress functions in AJAX request
- Prevent page reload after ajax form submission
- submitting form via admin-ajax.php returns 0
- Accept AJAX call with serialized form data
- Using ajax with wordpress
- WordPress Admin AJAX Serialize
- Ajax Modal Flickers When Opened Multiple Times
- Ajax image upload with media_handle_upload and form.js
- splitting the URL using jQuery
- How would you update a frontend form with AJAX
- Ajax post returning full html page as response
- Why is on status span no search results?
- How to handle 400 status in Ajax [duplicate]
- Refresh Markercluster after ajax call
- AJAX request randomly stop working and returns error 400
- Sending variable from ajax on form submit
- Show success or error messages in Ajax response to WordPress custom registration form
- Dynamically add more fields/remove last field in a form
- Ajaxify Form That Submits To Same Page To Display Post Data [closed]
- Bad request 400 from custom ajax call
- All AJAX requests return a 400 error
- How to pass parameters from jQuery ajax into PHP function?
- AJAX fileupload – TypeError: not a function ajaxSubmit()
- WordPress Heartbeat API cannot parse data
- merge wp rest api query to get posts per category does not work
- Ajax form submit not working, returns 0
- Using admin-ajax prevents regular php form submission
- WP AJAX post filter > do something with empty value
- Load more posts in the same category – Ajax + Timber
- How to jQuery Ajax show new data from successful insert?
- wp_mail doesn’t work when logged in?
- How to create a form button that executes a function?
- How to stop being directed to admin.php after sending request to admin-ajax.php
- Using AJAX to run SQL statement and populate dropdown
- Converting a working AJAX form to work with WordPress
- Ajax Favorite from foreach (how to specify which result result is processed)
- Display full WordPress post under search form using AJAX
- WordPress Select Option Load Custom Fields
- Uncaught TypeError: Cannot read properties of undefined (reading ‘message’) [closed]
- Fetch value using AJAX in WordPress
- Query data after an Ajax insert
- How to send automatic response after form submission without plugin
- AJAX not working when clicking load more button, when two terms are present in tax_query
- Search live Ajax
- WordPress POST AJAX call, var_dump($_POST) NULL and AJAX response empty when inside ob_start
- jQuery.post returns 0
- Ajax sometimes work and sometimes just don’t work
- jQuery ajax method does not return data
- How to submit the date with ajax?
- JS global variable doesn’t update
- Download doccument on server rather than clients browser
- Registration form AJAX check for existing username (simple version)
- AJAX POST Value not being returned – WordPress – AutoTrader API
- Javascript output now showing in custom widget
- Ajax show custom post data form & script
- WordPress Ajaxifying not working properly
- How to submit form data in the same page in WordPress without reloading the page?
- Is not using admin-ajax to ajax submissions okay?
- Using AJAX on Contact-form the WordPress way
- Error while submitting form using AJAX and php
- $_POST empty in using new php file added to theme
- Ajax contact form returnig 0
- Using AJAX for dynamic settings pages
- Ajax Form seems to post, but does not return
- Page reload occurs before request finishes
- WordPress sound bell when new data will add
- jQuery form plugin, submit in the wordpress way
- ajax form function error
- Can’t access data from database using AJAX
- WordPress Ajax send response on every iteration of a loop
- Custom WP rest api endpoint only working on non https?
- How to update my jquery/PHP function to add/remove user as favorites in (WordPress) users list
- AJAX call not initializing for non-admins in WordPress
- JQuery UI Autocomplete/Autosuggest WordPress
- Logout and redirect WordPress user id without he refresh the page
- How to show custom fields in modal in category page
- Help with jquery/ajax requests