Questions tagged as 'javascript'

1
answer

Use JavaScript to change ownership in CSS

I'm not able to make it work, I have a retractile side menu and a button on a bar in the header. I set my menu to margin-left: -250px; and wanted it when I pressed the button it would go to margin-left: 0; , thus making the menu app...
asked by 16.04.2015 / 21:18
2
answers

Do not insert zeros to the left of a number

I have n inputs, which are created dynamically. What happens is that they can not accept leading zeros on the following occasions: 0.24 - > The system accepts 00.24 - > The system automatically removes the leading zero to 0.24 034...
asked by 18.03.2016 / 10:30
2
answers

How to change the value of subsequent inputs?

In a form there are N occurrences of values for the same product, to facilitate I'm wanting to apply the same value for the subsequent inputs. For example, using the structure below: <input class="valor partida" type="text" name="novo_va...
asked by 18.05.2016 / 21:50
2
answers

clear input with javascript onchange event

I have 2 input: <input name='nome1'> <input name='nome2'> I need to create a javascript that clears the name2 when the value of the name1 is modified. Can anyone help me do this quite simply?     
asked by 20.04.2016 / 22:07
3
answers

Reset "select" when unchecking checkbox

Hello, I'm trying to use the Jquery checkbox, And the second question is whether there is a better (simpler) way to get the same result. I thought that I had succeeded, through a previous question but an error appeared. Thanks in advanc...
asked by 21.03.2016 / 19:49
3
answers

Sending external PHP variable to Javascript

I need to receive a message sent from PHP, and I need to receive it on the screen, to tell you if the login is correct or not. But I do not want to use ajax. The code I'm getting in the internal script is the index: <script type="text/ja...
asked by 11.06.2015 / 14:38
4
answers

Select with redirect

I do not know how to program! but I can make small changes. I need to create a select and when the person chooses the item, it will be redirected <select> <option value="Vilhena">Vilhena</option> <opti...
asked by 24.07.2015 / 19:16
2
answers

Get the value of an input with javascript

I'm doing a PivotTable where the data comes from the database, and the user has the ability to edit that data. This data coming from the database is within <div> . Next to this data has a Editar button where it changes the...
asked by 16.08.2014 / 05:12
2
answers

Hide and Show all the descendents of an ul - JQuery

I have the following lists: <h4>Procedures</h4> <ul> <li">Foo</li> <li">Foobar</li> <li">FooBarBazz</li> </ul> <h4>Packages</h4> <ul> <li">Foo</li&...
asked by 07.08.2014 / 21:13
2
answers

Recognize whether the user is using iOS or Android

I'm developing a screen for a website, and the customer asks if there's a chance the site will recognize whether the user is using Android or iOS. If you're on Android, go to Google Play to download the app and if it's iOS for the App Store....
asked by 29.08.2014 / 14:36