Как заполнить поле формы Elementor во всплывающем окне с заголовком спойлераJquery

Программирование на jquery
Ответить Пред. темаСлед. тема
Гость
 Как заполнить поле формы Elementor во всплывающем окне с заголовком спойлера

Сообщение Гость »


I have spoiler I want to send title of the item I click on it, the content has button that opens the popup with the form. I can get the title with jQuery, but I can't populate the input with the value. this code is getting the value and populate the input

var job_title = ""; jQuery('.careers_toggle h2.elementor-tab-title .elementor-toggle-title').click(function(){ title = jQuery(this).text(); title = jQuery.trim(title); job_title = title; jQuery('#job_title').val(job_title); }); jQuery('#form-field-first_name').on( "focus", function(){ jQuery('#job_title').val(job_title); }); job_title is the ID of the input, but none of the options is setting the value. How do I set the value? I did it with Contact form 7 and other popup plugin, but I don't want to add more plugins


Источник: https://stackoverflow.com/questions/781 ... iler-title
Реклама
Ответить Пред. темаСлед. тема

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

  • Похожие темы
    Ответы
    Просмотры
    Последнее сообщение

Вернуться в «Jquery»