Questions tagged as 'html'

1
answer

Print the result of an AJAX query in an input text

I usually print an AJAX response on a div or span. My question is if I can make my result show in an input text. Example: $(document).ready(function() { $('#form, #foo').submit(function() { $.ajax({ type: 'POST',...
asked by 28.06.2017 / 16:56
1
answer

Drop-down list

I'm creating this list like this: .body-content { padding-left: 15px; padding-right: 15px; } /* Override the default bootstrap behavior where horizontal description lists will truncate terms that are too long to fit in...
asked by 08.06.2017 / 22:19
1
answer

Get random url of feeds

Hello it turns out that I have the doubt of how to get the url of any post published using the feeds I have the following code but it does not give the result I need. <script type='text/javascript'> //<![CDATA[ var post = src='/fe...
asked by 17.08.2017 / 02:59
3
answers

Remove label style from several label that are inside a div (JQuery)

As the title says, I want to remove the style tag from the following code by JQuery . Code: <div id="action_ligne" class="action_ligne"> <label class="lbl obligatorio checked" style="color: red;">Code postal<...
asked by 18.08.2017 / 21:41
1
answer

I do not apply style to HTML tag from HTML

I am trying to modify the styles from the HTML tag if the user has logged in. I use it a lot on the web and it does not give me problems, but in this case I do not get them to apply: <h1 <?php if($user != "null") { echo "style='borderLef...
asked by 10.06.2017 / 19:07
1
answer

Pass several data to modal

I am trying to send several variables to a modal but the question is that it only sends me 2 out of 5 variables (variable 1 and 5). Could someone throw a cable? Thank you very much With this I call the modal <a data-toggle="modal" data-i...
asked by 17.08.2017 / 11:08
1
answer

How to send a link through AJAX?

What I need specifically is that by clicking on a <div> or the label that was, act as a link, but only to request a JSON request, that is, it is a link that does not direct to any specific side, only performs a write job on the serv...
asked by 23.06.2017 / 16:34
1
answer

Javascript works for a piano

I'm making a piano that reproduces the sounds by onclick but when I click twice on the same note and the first time it keeps playing the second one does not reproduce the sound. The example is this: link and this is the code:...
asked by 01.06.2017 / 14:48
1
answer

How to send a message to a gmail account from DJango

You see, I have created a view with which a person can send a message to an email address. I already have it ready, but there are a couple of failures: The first, although some factors, such as to which email address the message should be sent,...
asked by 15.05.2017 / 15:31
2
answers

I want to save the data of a form in javascript variables and then fill another form with those variables

Script: var texto = ""; function getData() { "use strict"; texto = document.getElementById("texto").value; } HTML: <html> <body> <script type="text/javascript" src="capturador.js"></script>...
asked by 04.04.2018 / 22:20