Skip to content

Tag: html

Error: animal.image.map is not a function

I am currently making a shelter web app using mern stack and i am struggling to display an image from my object. i already used the map but i think it is only for array objects. so i am clueless how to get the images.url on my animal object. this is my animalSchema AnimalReducer and this is what i use

How can we Create a multi button to display with CSS/HTML/JS?

I am looking to create a fairly simple webpage that consists of 4 buttons that when clicked display a different output in the same location. Ex: Button 1 outputs a query that displays Pizza Sauces and Button 2 outputs a query that displays Pizza Toppings, but both display in the Output Box. I have the proper …

Create a line break in the text inside span

I am using the following HTML in the application:- But am not able to create line breaks in the text. I have also tried using n,r and br tag but nothing seems to break. The expected output is:- I would like to discuss this: {“incidentId”:”TG00040″,”desc”:”Patient Deta…

Why does my calculation function not run properly?

I need to create a BAC calculator in JavaScript. When I run the code, the form validation works but the calculate function doesn’t seem to run. If anyone has any answers I’d be more than happy. Thank you. Answer In the validateForm()-method, try return calculate();