Posts by M_b_85 • 359 points
20 posts
-
0
votes0
answers32
viewsQ: Jquery does not work with new HTML elements
I have an HTML form with several elements (inputs text, range, image, etc). When I click a button other elements are added dynamically, but in these new elements, jquery events do not work (onclick,…
-
0
votes0
answers119
viewsQ: Popover does not work when added dynamically by jquery
I have a div with various information and a Popover (Bootflat). When I add another div via jquery, the new Popover of the new div does not work. (div gets the correct formatting and Popover code is…
-
0
votes1
answer30
viewsQ: Access PHP class with AJAX
I have the file.js file in the folder: folder1\folder-xpto\js\c3-0.4.11\file.js This file has the following script AJAX: $.ajax({ type : 'post', url : 'controller/classX.php', dataType : 'html',…
-
3
votes1
answer2301
viewsQ: Back to last page
I have on page (B) the following code to return to the last page (A): <div class="return_back" onclick="window.history.go(-1);">< voltar </div> I have a form on page (B), and if I…
javascriptasked M_b_85 359 -
1
votes1
answer34
viewsQ: Submit form with event when checking radio buton bootflap
I am using this Responsive HTML library (http://bootflat.github.io/documentation.html) and I want to submit a form when I click on a radio button. The problem is that as there are multiple "layers"…
-
0
votes0
answers272
viewsQ: Compare field values of two excel tables in different files
I have two tables in 2 excel files, and I want to compare each value of the A column of the file_1 with each value of the A column of the file_2 and also each value of the F column of the file_1…
-
0
votes1
answer51
viewsQ: Prevent input from having default text
How do I prevent that when opening a form, inputs are empty and have no text by default. Basically what I want is for the inputs to be without any associated value. In this case the password is…
-
0
votes1
answer166
viewsQ: Pick up input file with multiple classes
I have an input file with two classes. <input type="file" class="upload upload-logo" /> <input type="file" class="upload upload-rules" /> <input type="file" class="upload…
-
0
votes1
answer1113
views -
0
votes1
answer43
views -
1
votes1
answer322
viewsQ: Pick up the next input after an input (Object)
I want to get the object of the second input. As I have more inputs with the 'check-date2' class, I want to pick up the element immediately after the first. HTML <div class="form_line">…
-
1
votes2
answers874
viewsA: Confirm before submitting javascript function
Problem solved. Stayed like this: function checkFormIsCorrect() { if (!$('div.has-error').length > 0) { displayAlertify('confirm', 'Confirme todos os dados antes de submeter'); } return false; }…
-
4
votes2
answers874
viewsQ: Confirm before submitting javascript function
When I submit a form, by onsubmit(checkFormIsCorrect()), call this javascript function that will validate various situations and submit or not the form. In this capacity: function…
-
3
votes2
answers535
viewsQ: preg_match(...) for various text types
How can I validate the texts below? Letters (including accents) and numbers (without spacing), separated by . or . e.g. 'olá123' Integers and/or decimals. ex: '22' or '2.2'
-
1
votes1
answer106
viewsQ: Sort array php
I have a array, in which values are arrays. How can I order the first array, accordingly with a value that is in the second array? Example: array(array(id=>5), array(id=>2), array(id=>1),…
-
0
votes1
answer68
viewsQ: Dash Sliding-Middle-out on top image
I have an image and at Hover, I want to present a dash at the top of the image growing from the middle out. example here (below "our Programs"): http://www.templatemonster.com/demo/58536.html I’m…
-
1
votes2
answers508
viewsQ: Catch the Children of an Object
I’m trying to add and remove classes only to the div that has Hover, but I can’t because I have 4 Divs with class .image. The same is true for all Ivs. Here’s the code: $(document).ready(function()…
-
0
votes2
answers863
viewsQ: Calling function after choosing date
Good morning, I have an input text with a datepicker. The input has a Validator function that changes the color of the input as the text is right or wrong. But in this case as I don’t write directly…
-
2
votes1
answer1065
viewsQ: System to measure distance between 2 locations on my website
Good morning, I’m making a site where users need to calculate the distance between two locations. Does anyone know how or where I can use a system that allows me to do this on my website?…
-
6
votes1
answer981
viewsQ: replace all occurrences of a character in a javascript string
I need to replace all occurrences of these 2 characters "_1" in a string with "_2", but Regex does not accept to put a variable there. var current_registration_number = 1; html =…