Questions tagged as 'javascript'

2
answers

Put Json value in the variable

What am I doing wrong? var GETEstado = $(this).val(json[0].GETEstado); alert (GETEstado); Alert is displaying    [object Object] My complete code: $(document).ready(function () { $(".transportadora").click(function () {...
asked by 13.05.2015 / 14:37
1
answer

How do I get a div to scroll down automatically?

I have a div with a lot of text, and I want it to load when the page div starts to do automatic scrolling showing the whole text ... html: <div id="corpo"> <p> Titulo da notícia, Titulo da notícia, Titulo da notícia,...
asked by 18.05.2015 / 15:40
2
answers

Modify the src of several images individually

I need a script that modifies the src attribute of multiple images. The idea is to replace some portions of the URL only, but the problem is that there will be multiple images with the same class. It will be a tbumbnail generator....
asked by 04.04.2015 / 16:58
1
answer

execute function that is inside a JavaScript extract

I'm trying to use functions that are inside an export, for example BigInteger , in fact all are: link But I need to use them in another file so I do not have to repeat it, is it possible?     
asked by 12.04.2015 / 00:15
2
answers

Select input text for its value

I would like to select an input type text field that contains the word "hi" in it. Assuming my input is this: <input type='text' id='texto' /> I saw that it is possible through: $("#texto[value='oi']") But I saw that it only w...
asked by 06.04.2015 / 15:45
2
answers

javascript prevent from submit

I have a text box and a button. I just want to check the value of the textbox with javascript and prevent it from displaying if it is null. Here is aspx: <asp:TextBox ID="TextBoxName" runat="server"></asp:TextBox> <asp:Button...
asked by 01.04.2016 / 17:34
4
answers

Convert a Select with 2 option in HTML to 2 buttons

Context:    Daily access to a website several times during the day, which before actually entering, in addition to informing user and password, I have to select the type of access between the existing 2, I think it is bad to have to select...
asked by 31.03.2016 / 15:54
1
answer

Can I check alert block checkbox in Mozilla?

In my code, I issue a confirm asking the user to select an option. The problem is: "When the user selects the desired option, another alert is issued, and in this other alert , a CHECKBOX option always appears for the...
asked by 27.11.2014 / 14:35
1
answer

Keyboard event does not work Jquery

I wonder why this event does not work with some keys. The key I want is seta para baixo (40) , but it does not work. The Enter (13) and letras e números keys work normally. I've removed all the Jquery code, and nothing. $('...
asked by 08.04.2016 / 12:52
2
answers

How to call a javascript function from an external file?

I'm having trouble validating a field by clicking the incluir button, so I click on incluir gives this error below:    Unable to get 'value' property value: object is   null or undefined. This error appears in this line of...
asked by 09.12.2014 / 14:20