Questions tagged as 'javascript'

2
answers

Disable Bootstrap Collapse after first click

I have a page, in which I applied the bootstrap class collapse, where clicking it expands a certain area and the page scrolls to that part of the site. I want you to click and expand this area, the button loses this functionality, that is, when...
asked by 20.09.2016 / 20:34
3
answers

How to pass data from one input to another with html and javascript?

I have a problem with this, I researched a lot and I could not solve my problem. I hope you can help me! I have a page (in html) with a form. I would like the value placed on the input of the first form, when clicking Submit, to be placed in...
asked by 21.09.2016 / 16:27
1
answer

How to color cells in a table with Javascript?

I've done the table code, but I do not know how to color the columns. <script> window.onload = function tabela(){ var lin = prompt("linha"); lin = parseInt(lin); var col = prompt("coluna"); col = parseInt(col);...
asked by 22.09.2016 / 23:36
2
answers

How to send a php variable in a javascript function parameter? [duplicate]

I want to send a php variable when calling a javascript function. This way: href="javascript:calcular($valor1)" I try to do this, it does not seem to work. Is there any other way to do this?     
asked by 16.09.2016 / 19:36
1
answer

How to validate CNPJ [duplicate]

I have this submit from my form that comes from php , I wanted to validate two fields within it from cnpj and date. How to do? $("#more").submit(function repeatLink (event) { event.preventDefault(); alert('estou aqui'); va...
asked by 16.09.2016 / 13:11
1
answer

Javascript callback issues

I have a div modal bootstrap that stays in the "masterpage" _Layout.csthml . <div id="ModalAlteracao" class="modal fade"> <div class="modal-dialog"> <div class="modal-content"> <div cla...
asked by 16.09.2016 / 22:34
1
answer

Change wallpaper according to JavaScript temperature

I made a FreeCodeCamp project where it is to do a Local Weather (Local Weather). I used the API of their own project, already ready, but it does not change the background . I want to change the background as per the temperature and capti...
asked by 26.07.2017 / 03:29
1
answer

Applying Jquery mask in value and not input

Hello, I have the following phone and cell values respectively: Phone: 1111111111 Cellphone: 11111111111 I already have the value in the database, I would like to present these values formatted with the following masks: Phone = (11) 111...
asked by 25.07.2017 / 23:10
1
answer

Uncaught TypeError: $ (...) .Attr is not a function [closed]

Why does not it work? $('#chatEnvia').click(function() { if ($("#chatEscrita").val() !== "") { $.post("inc_chatEnvia.php", { acesso: "ok", msg: $("#chatEscrita").val(), de: $("#de").val(), para: $("#para").val()...
asked by 26.07.2017 / 15:39
1
answer

effect page current css and jquery? [closed]

I have a menu like this:    | HOME | NEWS | ABOUT | OTHERS | This menu has background white , but I want to do the following, if I'm on the news page I want background to be blue , just like this wp theme ?     
asked by 27.07.2017 / 00:25