Category "html"

How to Crop Images in a Django Application *JavaScript Issue*

I am having issues with my JavaScript code, and I am trying to get the image crop (picture) below to pop up but when I click the Choose File button but nothing

How to toggle between two images on click without using JavaScript

In a HTML document, I have <img src="cat-thumbnail.jpg">. When the user clicks on the image, I want to display another image instead: <img src="cat-ful

Run python script from HTML button

I have a code to display the live camera footage on a HTML and I would like to have a button that allows users to ring the rpi buzzer. However, the buzzer butto

jQuery DataTables format output for export, exclude buttons

For the jquery data table, I have a table displayed in one of the columns in the Datatable and wanted to enable the user to toggle it on/off. When exporting to

Can I adjust the button styles of Chrome's <input type="date"> datepicker?

Is there any way to change the input type="date" styles from Chrome's default styles? I want to replace the circle button to something else. The circle button s

Why can't I import an SVG by using <use> without using the id?

Whenever I import an SVG with <use> element it won't work unless I specify the id of that SVG even though it's the only SVG in the document! This will wor

how to show {"POWER":"ON"} in else if (this.responseText == ({"POWER":"ON"})) { [closed]

Hi all I am trying to get my page to change the button color when I have a response from this.responseText. I know the response I get from Jso

How to hide background for ::cue pseudo-element on Safari?

I'm trying to hide captions on a video element: I'm using the following css: video::cue { visibility: hidden; } It works fine in Chrome, but on Safari it

How to wrap long text in html emails

Hoping someone can help. I have some HTML email templates in my app, they work fine and look great in litmus. A lot of the content in the email is user generate

How do you disable the datepicker in Microsoft Edge?

I have several inputs with type="date" and want to disable the default date picker in Microsoft Edge since I'm using jQuery's datepicker. How do I disable this

How to remove text between <script></script> tags

I want to remove the content between <script></script>tags. I'm manually checking for the pattern and iterating using while loop. But, I'm getting S

Using R code to scrape data from a webpage into an Excel file

I have written a code in R which is supposed to retrieve certain information from a website and import it into an Excel file. I have used it for one website and

How to reset margin-bottom to its default value

I'd like to be able to set the margin-bottom of an element to its default value. Consider the following example in which there are h1 elements which have their

If I click to the first radio btn the second box first value should highlighted. How is that possible?

I have two boxes, One contains radio btns and in another box I have some values. If I click to the first radio button. First column values should highlight. My

Hide div that contains specific text

I want to hide a div based on the text inside. In the example below I want to hide the ones with "Handtekening" and the one with "Thuis". I prefer to do that wi

how to tell which button was clicked in post request with node backend

I have a node application, where on the frontend, I have multiple buttons that activate the same post route as specified by the formaction attribute below: <

JavaScript form script works Chrome but nowhere else

2nd update 9/6/2015 So here's what I came up with for a solution—it's certainly much shorter, and works in all my Mac browsers so I'm assuming it works el

React path to public folder in css background image

I am using Create-React-App and I want to add background image for my header section and I am doing this in that way: background-image: url('~/Screenshot_11.png

Django HTML form: how can I only populate a field value if it exists?

My Django application has a Person model with some optional text fields, such as: nickname = models.CharField(max_length=20, null=True, blank=True, default='')

bootstrap fixed table headers with scrolling body

New to programming and first time posting here as well. I've got a bit of an issue with my bootstrap table inside a panel. I have a dropdown menu where the use