Questions tagged as 'javascript'

1
answer

looks for PHP / MySQL with JavaScript returning data for HTML

I am putting together a search page where in the HTML page a search button when clicked calls a Javascript function that passes the typed content to a php page. This page in PHP should connect to the database, fetch what was typed and return som...
asked by 31.03.2016 / 15:06
1
answer

search for a form field with jquery

I have a select field in html, it is hidden along with a div and disabled. From the selection of a value (select), it should appear on the screen and be enabled. I am not able to make the select field enable, it always appears disabled....
asked by 28.03.2016 / 16:11
3
answers

show all select options without scrollbar

I have a select that brings information from a JS, however this select is forming a scroll bar and the options are not many and there is room for more options to be shown however regardless of what I try I am not able to make all the data is dis...
asked by 22.03.2016 / 18:03
1
answer

pass variable javascript to catch with post in php

Good afternoon, I found numerous ways to pass javascript to php but no way worked. I thought of a way but I do not know how to effect it, I saw that with ajax would be the only way I think, what I thought was. I have an information in localst...
asked by 05.04.2016 / 18:40
3
answers

Get div content, a, select

I have a problem with the implementation of this simulation, it is the following, the user chooses the package by clicking on one of these boxes (monthly, quarterly, semiannual or annual), then chooses to select the number of points and wants to...
asked by 02.04.2016 / 23:46
1
answer

How to create and populate a table using jquery and database?

I need to create a table in HTML that populates rows and columns with data coming from a specific table in my database. But I want whenever a new data is inserted into this database table, it automatically appears to the user in the HTML table....
asked by 06.04.2016 / 15:55
1
answer

I need another solution to make this code

People I made a code to appear the word at the end with the click, but my code was very extensive. Do you have any other solution to do the same thing? <!DOCTYPE> <html> <head> <title>Substituir</title> </h...
asked by 30.03.2016 / 21:25
2
answers

How to round to 2 decimal places in javascript using a specific rule?

Hello. I need to do a simulator in which a student inserts note 1, note 2 and he calculates the average. Note 1 is multiplied by 0.4 and note 2 by 0.6. The notes are decimal and only the second house after the comma is rounded. Ex: 4.46...
asked by 23.02.2016 / 14:56
1
answer

Function can not be used in a certain scope

I'm using the following library: jQuery-Dual-Listbox . I made a simple modification in the code creating a function that allowed to work with the selected elements. Function name: afterChanges Here is the code for the modified l...
asked by 03.02.2016 / 14:12
2
answers

Facebook Page Plugin giving "Failed to load resource"

I would like to use the Facebook page plugin, but I can not. After adding this code at the beginning of the body tag <div id="fb-root"></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (...
asked by 10.10.2015 / 16:46