Skip to content
Advertisement

Tag: html

Javascript Input type=”color” validation for form

Beginner level with Javascript and have a question regarding the input type color. I am trying to make the user choose the color black before proceeding with next page of the form. The default color is yellow. Could someone please help me with this and explain where I have gone wrong or missing something? And have done research to try

Detect input value change with MutationObserver

I want to detect when text/value change in input field. Even if I change the value with js, I want to detect that changes. Here’s what I’ve tried so far in demo in fiddle. HTML: JavaScript: Answer To understand what is going on is necessary to clear up the difference between attribute (content attribute) and property (IDL attribute). I won’t

What is making these subnavs expand?

I’m looking at http://voky.com.ua/showcase/sky-mega-menu/examples/demo-personal.html and I can’t figure out what is making the subnavs expand. For example, hover over “Portfolio” and see the subnav expand. I’ve inspected all the elements around the nav items and I can’t find any CSS3 transition and I also can’t see Javascript adding any style attributes to the elements or adding any classes. Answer There

How to place Javascript in a separate file from HTML

I have this code placed in index.html, all together – Javascript and HTML. what I want is to place the JS into another, separate file called “pw.js”. I have created a blank JS file located in folder “js”. I have added it to (head) as well like this <script src=”js/pw.js”></script> This is what I have now in index.html, how to

Bootstrap Large table with Pop ups

I have created table with 21 columns, since the names of each column was too big I reduced them and now I would like to add pop-over on:hover, on each of them which will display the full text. Here is the HTML: Answer You can use title attribute in <th title=”colName”>, you can write full name of column in title

New line that is visible in both HTML and console.log

I have this simple JavaScript: The problem is that I would like a newline to be shown when the function output is displayed in console.log() without the <br> tag (because <br> displays on the console) , but also be able to write the text “Unknown Error” to a newline in html without using <br>. Is there any solution to display

html css and js not working

This is my code: The css: And the jquery: I’m using the Brackets program to write my code, but when I go to the live view after I saved everything and i press “toggle” the page wont move and I looked over everything and Im 98% sure its correct. Answer Put <script src=”Home.js”></script> before the </body> tag. I made another

Advertisement