Answer the question
In order to leave comments, you need to log in
Wordpress can get URL or link title for Contact-form-7?
0
Worth wocoomerce through contact form 7 implemented feedback. For each product, you can ask a question. Is it possible to get a link or the name of a product that a person will ask about without going into the product, but from the catalog? I found this on the site:
$('.zakaz').click(function()
{
titleService=$(this).attr('data-title-service');
$('.hide-title').val(titleService);
});
[hidden title-service class:hide-title id:title-service]
Answer the question
In order to leave comments, you need to log in
Hello!
It's hard to give advice when you can't debug and tell what exactly the problem is on your end.
For example:
$('.zakaz').click(function()
{
titleService=$(this).attr('data-title-service');
$('.hide-title').val(titleService);
});
e.preventDefault();
and after inserting the value into the desired field, submit viasubmit()
$('.zakaz').click(function(e) {
e.preventDefault();
titleService=$(this).attr('data-title-service');
$('.hide-title').val(titleService);
});
titleService=$(this).attr('data-title-service');
var titleService=$(this).attr('data-title-service');
let titleService=$(this).attr('data-title-service');
$('.zakaz').click(function(e) {
e.preventDefault();
titleService=$(this).attr('data-title-service');
$('.hide-title').val(titleService);
});
jQuery(document).ready(function( $ ) {
// Ваш код тут
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question