Category "html"

result of my js calculation is not stored in mysql

Good day, I experimented with a simple JS math calculation. this calculation works as expected, but additionally I wanted to store the math calculation in a dat

HTML5 Canvas drawImage from video not showing on first draw

I have a video element with a canvas overlay. Then I have a drawing tool setup to draw over the video and a save button that does a drawImage from both the vid

Detecting where a submit event came from with jQuery

I need to detect how a user submitted a form to generate some statistics. They can either press enter when typing on the input or they could click the submit bu

What is the best php library to convert html to plain text from email?

I have been testing 2 different PHP libraries (html2text & htmlpurifier) to convert html email to plain text. The problem is that none of them are formatti

how to catch scroll event caused by hash bang anchor link?

I am just wondering if there's a better way to approach this So, say you have jump to link using anchor tag: www.example.com/#about opening that link will ma

Why is my picture stretched on mobile iphone safari?

In the second picture there is android, everything works fine. But on iPhones 7 on safari the image is being stretched vertically. Why is this happening? My htm

Trying to make this script work with touchscreen

i got this code looking around this forum but, I'm not being able to make it work on mobile devices with touchscreen. Problem is I need it to work as simple as

How to set the textarea value in JavaScript

I have the following JavaScript code: var c=document.createElement("textarea"); c.value="what ever"; document.body.appendChild(c); This supposed to ad

how can i make the field looks mandatory using HTML and CSS

I want to make a field mandatory but the *required in red color is coming below the field name which i want just beside to field name here is the HTML code &l

Using the Same jQuery Function in Separate Buttons

I'm trying to get each button to change color on click. However, I want to separate buttons 1-3 from buttons 4-6 so they are independent from each other. I wa

Twitter URL Preview Card Not Showing Image

I'm trying to get <meta/> tags set up on my website so that social media sites such as Facebook and Twitter show a preview card when posting a link to my

querySelectorAll is not a function

I'm trying to find all oferts in the var articleFirst, but the return message in the console says that "querySelectorAll" is not a function. Why I do get that e

How to center align logo image in Wordpress Theme?

I want to center align logo image of my wordpress theme, I've tried to do so but failed; Here's the CSS for Header Area /* Header ----------------------------

How to implement drag and drop so dragging child element will drag whole parent element

I'm working on a media import plugin for wordpress. I'm trying to implement a drag and drop feature to reorder media elements(audio and/or images) that the user

Search word and scroll smoothly on page

My client wants to add a search box on specific pages that will allow their user to search for a question and it will scroll to that text. This way it's easier

View selected values of a form

I'm trying to view the value selected in a radio button. The form is: <form onsubmit="return false;"> <fieldset> <h3>Textos</h3> <la

how to make child in flex go full width?

I've started using flex and I love how it works. I'm using flex layout and I want the btn-group class inside dashboard-body to go full width of the parent. Ri

CSS - Hide Options From Select Menu on iPhone & Safari

So I have a site that is using a select menu for the mobile navigation. I'm needing to hide a few options from the list, and have been able to so on all browser

How to open iframe link in new tab or window

I am using some iframe tags in my html page as shown below: <TABLE border="0" width="900"> <tr valign="top"> <td width="300" ALIGN=c

Dynamic table in HTML using MySQL and php

I've seen many posts about how to build a table in HTML with PHP and Mysql, but my problem is, that I often change the headers of MySQL columns. Is there any wa