Questions tagged as 'html'

1
answer

Match fraction number javascript

I have a script and in one of the lines: return $flag.text().match(/[0-9 ]+(?=\%)/i); read the numbers of a tag p . Ex: <p>Desconto 15%</p> In case it will read the number 15. From what I know this line does...
asked by 22.01.2015 / 12:52
1
answer

Continuous background audio

I put a background audio on the site with autoplay and loop, but when I went to another page, the audio started playing from the beginning. Looking for the net, I found a JavaScript that captures the elapsed time of the audio, and when I change...
asked by 10.04.2015 / 01:27
1
answer

Event on (change) on radio button

In the project I have a file that asks for freight rates and at the same time returns two radio buttons with the freight values. The HTML return is as follows: <p> <b>Selecione: </b><br> <input type="radio" n...
asked by 02.01.2015 / 21:35
3
answers

Assign CSS value to HTML via JavaScript

I created this FIDDLE to see if what I was doing was right or wrong. Apparently it's wrong: My goal here is to JavaScript assign CSS values to an HTML element, in this case the value top . Based on the response from this pr...
asked by 01.06.2015 / 16:37
1
answer

PHP- Show query results in a select

I made an input for admin to write a message to a specific user. The user will be selected by a select who will fetch the users table from the names and list them all. After selecting someone, the admin can write the message, which would be save...
asked by 09.05.2015 / 22:09
1
answer

Request Password When Enter Page

Well, I have a Page and want to protect it, But with htaccess, everything in the directory is closed. I just want to ask for a Password and User Name to enter it, not the other things in the directory. Here is the code I've already gotten in...
asked by 09.05.2015 / 16:54
1
answer

How to make the menu appear in bootstrap in mobile resolution without clicking the button?

Can anyone help me with css to leave the menu already enabled so when it comes in mobile resolution? link When you are in small resolution, it opens an icon to open the mobile button. You click and it opens to browse. What I want is t...
asked by 20.04.2015 / 15:56
1
answer

How to limit the sending of data of a form?

I want to prevent a user from sending data more than 5 times a day; I have no way to use the database would have to be written to a txt file.     
asked by 06.12.2014 / 01:37
1
answer

Replace content according to the search without having to submit

Good people, I have the seginte code require_once 'Connection.simple.php'; $OK = true; $db->setAttribute( PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING ); if (isset($_GET['name'])) { $data = $_GET['name']; $sql = 'SELECT * FROM channels...
asked by 29.04.2015 / 18:41
1
answer

"Substitute" ideal for placeholder

I'm in the final stages of a project! And now I'm doing the tests like performance tests and structuring errors! One of the errors found is placeholder of inputs and textarea. What can I use in place of the placeholder and which preferabl...
asked by 01.05.2015 / 02:00