Скрипт
Нужно реализовать следующее:
Есть кнопка с дата атрибутами, при нажатии на кнопку получаем определенные значения из разных полей. В данном случае я получаю пусть к изображению (пример images/design/new.png) и оно выводится на сайте в виде текста.
Вот такое событие при нажатии на кнопку <button class="btn-send-mob btn-mobal-price-mob" data-target="#modal-order-buttonr" data-img="С печатью">выбрать</button>
Скрипт:
$(function(){
$('button[data-target="#modal-order-button"]').click(function(){
$('.data_img').text($(this).attr('data-img'));
});
});
Дальше полученное значение выводится через".text()" в <div class="data_img"><div>. в итоге путь изображения подставляется в див <div class="data_img"> images/design/new.png <div>. Нужно сделать так, чтобы оно подставилось в "style="background-image: url(Сюда должен вставится путь);" пример как должно быть <div class="data_img" style="background-image: url(images/design/new.png);"><div>
-
19 Здравствуйте.
Сделаю все быстро и качественно․
Email- [email protected]
-
376 16 3 2 Сделаю.
Сделаю.
Сделаю.
Сделаю.
Сделаю.
Сделаю.
skype live:seletsky
-
289 5 0 Здравствуйте. Пара минут работы. Цена символическая.
Буду рад помочь :)
-
1742 114 2 1 Добрый день!
Готов помочь
Мои контакты:
скайп trollixxx
telegram freelancevip
email [email protected]
-
213 30 0 Приветствую! Сделаю сейчас же
Контакты:
Скайп - supersych
Телеграмм - t.me/morethanjustsych
-
267 5 0 Сейчас сделаю. Skype: dobrik18
Сейчас сделаю. Skype: dobrik18
-
deleted by moderator
-
Current freelance projects in the category Javascript and Typescript
Full-stack development — Amazon PPC Dashboard (Stage 1)Need a full-stack developer with experience working with Amazon API to implement Stage 1 of the internal PPC dashboard. The project is real, the data is live, everything is ready to start. Frontend prototype (5 pages, React + TypeScript): WHAT IS ALREADY READY — Frontend… Javascript and Typescript, Web Programming ∙ 7 hours 52 minutes back ∙ 16 proposals |
Development of a photo book and photo frame constructor websiteProject Goal A modern website needs to be developed for ordering photo books, photo frames, and other personalized photo products. The main task of the project is to provide the client with the ability to independently create a ready-made layout of the product directly on the… Javascript and Typescript, Web Programming ∙ 1 day 23 hours back ∙ 88 proposals |
Full-stack developmentNeed a full-stack developer who is free for work and not looking to get rich immediately from this project. This is my test site: readyhome.ge the prototype of which I want to create (not referring to design). In the footer, there is Russian language, fill out the questionnaire… Javascript and Typescript, Web Programming ∙ 2 days 12 hours back ∙ 79 proposals |
Team for a custom marketplace of funeral services.We are looking for a team to launch and develop a custom national marketplace for funeral services. Right away: we are not looking for solo freelancers, juniors, or "website builders." We need a strong product team at the middle+/senior level with real cases in… Javascript and Typescript, Web Programming ∙ 2 days 18 hours back ∙ 25 proposals |
Improvement of the existing Next.js/Supabase project: offers, CRM, analytics, AI chatThere is an active project WatchGenius — a luxury watch analytics platform with a catalog of models, price analytics, external offers, application forms, and an AI chat. The project has already been partially developed. We need not a website from scratch, but an experienced… Javascript and Typescript, Web Programming ∙ 4 days 19 hours back ∙ 54 proposals |