2

I'm trying to recreate this sticky column html table https://codepen.io/paulobrien/pen/gWoVzN

I've run npm install --save jquery. I've used it on mounted. But it seems to not work.
Any idea how to implement jquery inside vue js?

2 Answers 2

3

Import jquery in your vue component:

import $ from 'jquery'
Sign up to request clarification or add additional context in comments.

2 Comments

I have a table that shows only after a set of inputs are clicked. In my case, I inserted the jQuery code after all the actions are executed. But nothing happens.
Can you share your code? to see where is the problem
1

Run the command to install jQuery

npm install --save

Now you can use it in your component by importing it

import $ from "jquery";

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.