Questions tagged as 'javascript'

1
answer

Javascript blocking required

I have a strange problem. I added the function below to prevent the user from clicking more than once on the submit. But from the moment I added it, HTML5 required and validate () stopped working in all fields. Could anyone tell me the reason?...
asked by 28.01.2016 / 13:49
2
answers

Organize information in alphabetical order - Html / JavaScript or Wordpress

Next, I have a site in wordpress , I created a page inside that site and on this page I will have a list of companies something like this:    Company A - (Company name)       Company data (This data will be hidden, will appear wh...
asked by 27.01.2016 / 13:49
1
answer

Use div class in js validation

I have a login validation in js that generates an alert: <script type="text/javascript"> var mensagem = "<?php echo (isset( $_SESSION['erroLogin'])? $_SESSION['erroLogin'] : "false");?>"; <?php unset($_SESSION['erroLogin'])...
asked by 16.03.2016 / 20:31
2
answers

How to check duplicate elements in array?

I need to know if an array in JavaScript has duplicate elements. Is there any function in the jQuery API that does this? If not, how can I proceed?     
asked by 17.03.2016 / 17:40
1
answer

Adding elements with Jquery

I would like to know how I add elements above and below various paragraphs with jquery. Let's say, I have to get the third paragraph and add a <div> and I finish the </div> in the penultimate paragraph. <p>1<...
asked by 17.03.2016 / 01:22
1
answer

Vertical dropdown menu - Bootstrap

I'm making a page where it has a dropdown menu and each menu item changes the contents of the div on the left. My problem is that when I click on this menu and it shows its submenu, it should throw the "Equipment Calibration" and "Job Security"...
asked by 27.02.2016 / 05:13
1
answer

Remove TimePicker fields

I'm trying to remove the second, millisecond, and timezone fields but I can not. I checked the documentation, put showTimezone: false but it still appears. How can I proceed? CodeI'musing: <script> $(function() { $('#hora_parada...
asked by 26.02.2016 / 12:46
1
answer

Jquery code does not call Metodo in controler

I'm not sure how to use a jQuery method. I want to get a list of countries. Follow the code to help me know where I'm going wrong. < script type = "text/javascript" > $(document).ready(function() { $('#btnPais'...
asked by 27.02.2016 / 21:28
1
answer

Value (input) encoding format

Problem: I am passing the value of an input to a frame but the encoding format does not stay as it should - charset = ISO-8859-1 Trying this: <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <script type="...
asked by 26.02.2016 / 17:03
1
answer

Create DOM popup

I'm creating a new popup page through the JavaScript code. The page does not exist, so I want it to be just a temporary page. Example: if (option == 3){ var myPopup = window.open("", "", "width=350, height=300"); myPopup.ad...
asked by 04.01.2016 / 13:52