Skip to content

Tag: vue.js

Go to next input field at maxLength?

I have a form in Vue that has some combined inputs for styling reasons for a phone number input. My problem is that the user has to hit tab in order to go to the next input field of the phone number. Is there a way to check for the max length of the current and input and when that

how to get data use fetch API correctly in vue js?

I’m trying to fetch data from the backend using the GET method, but I always fail to get the data. I get the following error: CORS header ‘Access-Control-Allow-Origin’ missing. I don’t know how it happens because I tried to use POST method to my backend it worked. Here’s a capture of my brow…

What is the best way to reference an item in Vue?

My goal is to get the item that was clicked and based on that do some action. I have a few items that share the same event (click) but have different functionality. I want to unite them under one function and based on some attribute refer to the clicked item. So far I’ve been doing this using classes, f…