Questions tagged as 'javascript'

2
answers

HTML variable validation

Good afternoon guys, are you okay? I received an internal project and I can not finish it. I have this excerpt from an HTML page: <span style='font-size:9.0pt; font-family:"Calibri",sans-serif; color:black>'> Apr...
asked by 18.09.2018 / 18:17
0
answers

Is it possible to open a link on a specific browser tab using some target=""?

I have a contact signup system with a button to send whatsapp message to whatsappweb. When I click this button, it opens a whatsappweb tab in the conversation with that contact: <a href="https://wa.me/55'.$telefone.'" target="_blank">...
asked by 17.09.2018 / 13:59
1
answer

How to count the amount of input elements inside a div

Using ASP.NET MVC, I'm creating one input dynamically using a loop with data from the database. <div class="col-md-12" id="div-contatos"> @if (Model.PessoasContatosViewModel != null) { @for (int i = 0; i < Model.Pesso...
asked by 17.09.2018 / 02:33
0
answers

Convert comma-separated string to json

I have the function: $data ={ $G,3,"027",8,"sao paulo" $H,3,"027",5,"curitiba" $SP,3,"027",5,"brasilia",62312 } var dados = data.split(","); var json = []; var toSplit = dados.split(","); for (var i =...
asked by 16.09.2018 / 22:12
2
answers

Hide navbar when item is clicked

I'm developing a site whose menu is navbar with dropdown of bootstrap 4. When I view the site on a smaller screen, the nav is replaced by the button burger and is only "activated" when this button is clicked. However, I want it to be "disabled"...
asked by 17.08.2018 / 23:38
2
answers

JavaScript Error When Trying to Remove Element

I made a method to remove an item from my table made in HTML that is supplied by a normal form but the information goes to the table in question ... Until then everything normal, but at the time of removing a new item, other than the one previ...
asked by 16.09.2018 / 05:10
1
answer

Exchanging values between functions with JavaScript

Hello, in my code how do I get the values contained in the "data" array when calling the function (#print) from the generateString function. var gerarString = function () { var codproduto = 001, var newRow = 'teste', var ite...
asked by 16.09.2016 / 21:33
0
answers

Problem Appear / Disappear Content

I have a code and I need your help to be able to execute as I want. There are only 2 points: the first thing to put content before (when you upload the site does not appear div or content ), I need to put a content and the user gets come back...
asked by 17.09.2018 / 04:51
1
answer

Crash submit form in ajax request

I have the following code: jQuery('#modal').on('submit', function(e) { jQuery('button[type="submit"]').prop('disabled', false); jQuery('div[name="loading"]').html("<i class='fa fa-circle-o-notch fa-spin'></i> Processando....
asked by 15.09.2016 / 18:49
1
answer

How to check a radio button

My question is how to check if a radio button has been selected! I have a while as you are finding values within a table , it adds the buttons radios . So when radio is selected and clicked on "IR" it will call the other pag. passin...
asked by 01.09.2014 / 14:11