Navbar toggle isn’t working? Javascript: HTML When I am using liveserver on VSCode the navbar menu created by this works perfectly, however when I simply open the file from my finder into the browser, the navbar no longer works? Here is the CSS in case that’s necessary: I’m just now getting …
Tag: html
Adding And Sorting Array Of Integers from html input field Using Javascript
The Task Is To Get 10 Values Of Array Through HTML Input Field And Sort Them In Acceding Order In Order To Append 10 Value’s from Html Input field To JS Array I Created one input field which data is passed to array in js and Two labels to keep track of array using innerHTML Method Note:- The Name Of
Logo float on basic responsive nav
Problem ” float: right” poorly working in responsive class Basically, I am trying to place my image logo in the right-up corner for a semi-lang case but every manipulation on .logo force navigation bar to change its values. Question How can I align the logo to the right-up corner? What I’ve …
How to loop so I can separate 2 values? [closed]
Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 1 year ago. Improve this question I’m trying to make an inventory system as part for my e-commerce project so I need to g…
How do I make a table cell’s background change according to the data it stores?
This is my html page: I would like to make it so if the quantity of the item is <10, the cell becomes green, while when it is >10, the cell becomes red. I can’t figure how to make it work with one general function, insted of making one specifically for each cell. Answer You don’t really need…
How to stop the default behavior of a link from a child element
I am making an ad card using bootstrap, I’ve placed the card inside <a> element so that when the user clicks the card, the whole card will act as a link. I have a favorite link that marks the ad as a favorite for the user. The problem is, since the whole card is a link, whenever I click the
How to call methods on input of ‘number’ type?
I’m new to HTML and have an input with type=number: With (click), chooseStanding(standingspot.priceCategory) will be called every time the up or down button is clicked. But is it possible to have different method calls based on which button was clicked? For example, if the down button was pressed a diff…
How can I check if the browser supports iframe sandboxing?
I have some user-generated HTML and CSS. I think I should show the user sanitized HTML with no CSS or JS if the browser doesn’t support the sandbox property on iframes, which is what’s stopping JS from running and CSS from selecting part of my page. So how can I check if the sandbox attribute is s…
Modal Opening Unintentionally On Load
Hi there I am having problems with a modal I have implemented on my site where the modal is open upon loading the site, I wish to have it only open when the correct button is pressed. Additionally it is moving down all other divs below it even though I have the position as absolute and its parent div as
javascript executing both if else blocks
my Javascript function is executing both if else blocks. I want to add checkbox value in array if it is checked and remove value if its unchecked. The output is inside if and inside else. But i want to run either if or else block. Edit: I am generating dynamic label tags using php. I just shown one label tag