I’m unable to use the ids or the class names associated with the inputs due to how they’re randomly generated on input. The render looks like this: I have no control of the render and can not change any content. So instead I was trying to grab the second text input and add a label before it. .date…
Tag: html
Getting an issue in applying margin on the runtime using angular
I have an li element in which we are calling a method SiteAssetStyleForShiftedAsset like this: and from our javascript controller it being called like this: So it is working fine in the first if (isPPMJob == “FALSE”) but in else if where we are checking shiftingAsset.toUpperCase() == “TRUE&#…
I’m trying to use Javascript Fetch rest API in spring boot project by catogeryId
Hi im trying to get rest api data on html page by javascript fetch but i cant be able to fetch url categoryId can anyone help me out. Ill be so thank full of them.this is my Html page where i fetching my data This is my rest controller from where i m getting my data Answer As im already
What’s wrong with the animation for the menu?
Okay so basically I have to do an internet site for school with HTML but only javascript animation, all the code work proprely but when I want to transform the three lines I use for my hamburger menu into a cross with a javascript animation nothing is happening and I really don’t know why. If someone ca…
FadeInLeft effect when changing content
How can I get the FadeInLeft effect when changing content from .opacity=0 to .opacity=1 on the left side. I tried to solve this problem with the given script, but it did not work for me. P.S. See this layout in fullscreen. Answer Here is a very ruff first draft Since you already have the .active class being a…
Changing HTML text based on a value entered into an input box
I am creating a website and would like to make a tool using JavaScript to choose someone’s skateboard size depending on their shoe size. This is the code I am using: No matter what I type into the text box there is always a “?” that shows up on my website. What can I do/ change to fix this. …
Animate two items moving away from each other until hitting container outline
For an intro animation, I want to animate two elements away from each other based on the outer container width to make it work responsive. Absolute positioning didn’t worked for me because initialy the two items has to touch each other or have a constant, fixed distance between them. Here is a represent…
How to get country value from intl-tel-input?
so im new on javascript. I want to create form there is two field, phone number and country. And i want to seperate them on my database. I wonder how can i get country value from intl-tel-input ( https://github.com/jackocnr/intl-tel-input ). for example HTML Anyone can help me figure this out? thanks in advan…
How to get array index from html element?
Hey In my Vue application I have the opportunity to create several persons: If I want to add more persons, there is a button, which appends more of these person inputs: }, Output of the console.log method in the console (clicked the add button 2 times): Now the following problem: Let’s say for example w…
How to remove an incremental element in HTML using JavaScript
So I want to create a function that will let me add/remove an element in the HTML, I’m already done with the “add” part that increments the id value onchange (example: id=tag1, id=tag2, etc). My problem is on the “remove” part, I don’t know how to put an incremental value i…