Category "html"

NextJS - export is broken (no CSS, no JS)

I am using NextJS (https://nextjs.org/) Version 9.0.6. My next.config.js looks like this: /* eslint-disable */ const withLess = require("@zeit/next-less"

Change an image with onclick()

I want to change an image to some other image when i click on the object. the code is stacked in the following order: <li><img><some text><

How to manually trigger click event in ReactJS?

How can I manually trigger a click event in ReactJS? When a user clicks on element1, I want to automatically trigger a click on the input tag. <div classNam

How to change the background color of the modified text in a text area

I want to know how to change the background color or may be color of the text that was modified in a textarea. Like suppose, consider a textarea with a pre-defi

How to grab HTML elements in aspx.cs file (checkbox) C#

Let's say I have I have something along the lines of (in my aspx file): <input name="chk" id="cbox1" type="checkbox"> <input name="chk" id="cbox2" typ

SendGrid Dynamic Email Template won't pass data from .NET

I'm trying to use SendGrid's API to send Data to a Dynamic Template, and send that email to a customer. However, the email sends, but the data is never passed.

How can I select all the options in a drop down- Selenium Webdriver?

Currently working on Selenium WebDriver and using Java. If I have drop down name called Product.. In that drop down I have so many values (for ex:60). when exe

Click a button element on page load

I'm trying to auto-click a button to initiate a function when the html page loads. I've tried document.getElementById('watchButton').click and it doesn't seem t

How to make browsers load Japanese fonts for CJK text, instead of Chinese fonts

I have an XHTML1.1 document with a mix of English and Japanese text, with charset indicators lang="jp" and xml:lang="jp" in the opening tag for the <html>

Add an open url handler to a button

I created a button and I have applied to this button a handler to collect the data of some fields and record them in a spreadsheet. I wish, however, at the end

Angular Textbox Undefined

So I'm trying to programmatically edit a textbox in a webpage through chromes developer console. This is the code of the textbox. <input formcontrolname="use

How do I make list group item active without anchor tags?

I want to style a basic list-group item active to highlight it (change background color etc). Bootstrap supports the active class just through Linked items. I

Make other div not have its flow altered by a floated div

I have a page with a float: right'ed div at the top, and a text-align: center'ed div right underneath it. Is it possible to make the floated div not alter the f

Form within a foreach loop not posting the model back to the controller

I've searched around and can't find an answer to my problem. I've got a View that takes accepts Foo in like so: @model IEnumerable<MyApplication.Models.Foo

Giving a border to an HTML table row, <tr>

Is it possible to border a table row, <tr> in one go instead of giving a border to individual cells, <td> like, <table cellpadding="0" cells

How to create a password protected website?

I am in the middle of creating my website and I need to create password protected JavaScript code to access it. Do I need to change my CSS as well, or it will

Page elements not hovering correctly, no consistency across browsers

I have an area on a web page where there is a date entry. Next to it is a button that if clicked, should pop up a little calendar to the right of the entry all

Creating responsive images side-by-side in e-mail using plain HTML

I am attempting to include two images as a header in an e-mail, using pure HTML. One image will cover 40% of the screen width, and the other 60% width (the heig

Centering an Element correctly w/ :hover while it's expanding width

I would like to center an input perfectly in the middle when you focus or hover on it. Therefore I want it to expand the width in the middle instead of the righ

telerik radGrid - persist client state on sort/paging/filter

Even in this ajax example which I really like the look of, when ever the top level grid is sorted the "state" of what you were doing "disappears" For example,