Questions tagged as 'html'

1
answer

How to border shadow an image when you click on it?

I am making a form to select the type of card at the time of payment and I want that when you select the image of the type of card it is marked with a shading around it. my template is: <form> ... <div class='formulario-tarjeta...
asked by 28.03.2018 / 13:58
2
answers

Can HTML parsing be done with regular expressions?

Yesterday I translated the response from RegEx match open tags except XHTML self-contained tags with its famous snippet of code:    You can not parse [X] HTML with regular expressions because HTML can not be parsed with regex. Regex is no...
asked by 25.07.2017 / 11:11
3
answers

Transform document docx to html

I have a document docx already saved in bytes[] and I need to pass it to html to be able to display it on a page. I'm using Visual Studio with .NET to develop it in C #. Currently I already work from pdf that is easy to trans...
asked by 30.06.2016 / 16:57
4
answers

Can I enter special characters from a JSON?

How can I enter special characters within a JSON? For example, if I have: { "a": "Hola mundo" } and I want to put the word "world" in quotes. Try escaping them and with the HTML code: " The string I show in a web page, but neither of th...
asked by 30.05.2018 / 23:04
5
answers

Load JSON file and store variable content

I have the following code: <script type="text/javascript"> $(document).ready(function(){ $("form.loader").on('submit',function(e){ e.preventDefault(); $.ajax({ url: "data.json",...
asked by 25.03.2017 / 07:31
3
answers

Update text depending on selected values in a list * WITHOUT JAVASCRIPT *

At work we find an interesting problem: we have a page with a drop-down list that, when the selected option changes, updates the values of a series of elements from the values of a variable in JSON. HTML is something like this (simplified):...
asked by 08.06.2016 / 06:37
3
answers

Words reserved in HTML?

The doubt came to me when I saw a form like this: <form method="post"> <input type="text" name="name" placeholder="Your name*"> <input type="text" name="number" placeholder="Your phone number*"> <button type=...
asked by 27.07.2017 / 18:29
4
answers

Change color of HTML elements when holding down the mouse

I am trying to change the color of the elements, changing their class, while the mouse is held down, giving the effect of "painting". Doing it by mouse clicks I have it, here I leave the code: $(() => { $('table').on("click", "td...
asked by 28.02.2018 / 17:29
2
answers

Copy the contents of an element to the clipboard using JavaScript

How can I copy the contents of a div (or any element) to the clipboard using JavaScript / jQuery only without using Flash? For example, if I have this code: <p id="mi_parrafo"> Texto que quiero copiar </p> <...
asked by 07.12.2015 / 17:25
2
answers

Load an image when the loading of another

I have many images but loading them slows down the page, and what I need is that I upload the first image at 100% and then start loading the next one, and that the cycle repeats until all the images are loaded. For example: <div class="i...
asked by 13.03.2018 / 21:29