Скрипт
Нужно реализовать следующее:
Есть кнопка с дата атрибутами, при нажатии на кнопку получаем определенные значения из разных полей. В данном случае я получаю пусть к изображению (пример 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]
-
313 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
I am looking for an experienced Full Stack developer to create a SaaS service for online stores.Service idea: The client uploads a link to their product feed (XML or CSV). The service automatically retrieves the products, takes their photos, and creates new advertising images based on ready-made templates: price, discount, logo, promotional tags, etc. There should also be… Javascript and Typescript, Web Programming ∙ 2 days 15 hours back ∙ 86 proposals |
Development of a WebGL/Three.js scene with generation and export of 3D (snapshot) from an animated shaderObject Description:The project is a designer table shaped like a realistic, deep whirlpool (a central vortex that smoothly transitions from a wide horizontal tabletop to a thin elegant leg). Task Essence:A WebGL / Creative Coding developer is required to create an interactive 3D… Javascript and Typescript, Web Programming ∙ 3 days 12 hours back ∙ 30 proposals |
Support and development of the cleaning company's website
20 USD
I'm looking for a web developer/webmaster for long-term support and development of a cleaning company's website. Website: https://donely.ca About the project DoneLy Home Services is a cleaning service company in Canada that is actively growing and expanding its geographical… Javascript and Typescript, Web Programming ∙ 5 days 14 hours back ∙ 64 proposals |
Development of a website according to the specifications on FramerYou need to create a website based on the parameters in the technical specification. https://docs.google.com/document/d/1ODO2C9Krb4AaMiJz9wfbNzWlAyA2FwCCHL8r0biajUY/edit?usp=sharing Please provide your actual rate based on this design. HTML & CSS, Javascript and Typescript ∙ 6 days 15 hours back ∙ 30 proposals |
Development of an interactive Palworld map for the websiteWe need to develop an interactive map for Palworld based on the example: https://palworld.gg/map We need not just a static image, but a full-fledged interactive map where users can view locations, toggle object categories on/off, search for specific points, and interact with… HTML & CSS, Javascript and Typescript ∙ 8 days 6 hours back ∙ 36 proposals |