skip to Main Content

How to import image dynamically with Nuxt+jQuery script

<template> <div> <select ref='select'> <slot></slot> </select> </div> </template> <script> import Vue from "vue" export default { name: "VueSelect", props: ['options', 'value'], mounted: function () { var vm = this; $(this.$refs.select) .select2({ data: this.options, tags: true, theme: "bootstrap", createTag: function (params)…

VIEW QUESTION

change attr element by javascript – Jquery

This is my HTML Code: <div class="desc"> <p>Lorem ipsum dolor sit amet,....</p> <img src="http://sample.com/dl/image-1.jpg"> <p>Lorem ipsum dolor sit amet,....</p> <img src="http://sample.com/dl/image-2.jpg"> <p>Lorem ipsum dolor sit amet,....</p> <img src="http://sample.com/dl/image-3.jpg"> <p>Lorem ipsum dolor sit amet,....</p> <img src="http://sample.com/dl/image-4.jpg"> </div> This is my JavaScript…

VIEW QUESTION

call method in controller different id – Jquery

I have foreach @foreach (var produkt in ViewBag.OnePageOfProducts){ <button id="submitButton" value="@produkt.ProductId">Add to Cart</button> } and call method jquery ajax <script> $(document).ready(function () { var id var quantity = 1; $('#submitButton').click( /*error dont work read value from button id */ var…

VIEW QUESTION
Back To Top
Search