Questions tagged as 'javascript'

2
answers

Mark / uncheck all dynamically created checkboxes

I'm creating checkboxes from the DB. I have another one that defines whether all the others are marked or not. When I run the first time it works fine, but the second one does not. HTML <div class="row smart-form"> <section cla...
asked by 10.03.2015 / 18:09
2
answers

Sort Select by ID javascript

Personal I have a select via ajax that pulls the data from my bank but at the time of submitting the select, I'm not able to display by order of ID Grow , <div class="modal-body"> <div id="lista-hospitais-loader" cl...
asked by 10.05.2017 / 15:53
1
answer

How to apply css to the body inside an iframe?

I want to apply background: transparent no body that is created inside an iframe. For example: <iframe src="http://www.meusiteteste.com.br"id="frame_result_show" frameborder="0"></iframe> Is there any way?     
asked by 10.04.2014 / 17:27
2
answers

Javascript mask for time entry

Does anyone know of any javascript mask for input at times where the format is not HH: mm. I will use it to set the time in project hours and some of them can take more than 24h. Example 120: 00 hours, 200: 00 hours and thereafter. The masks I g...
asked by 12.04.2014 / 21:25
1
answer

Real-time values in the input class type="range"

Well, I tried to make the values in a input type="range" show in real time the user to select more I can not. with jquery it is also the same only when you release the mouse button from class input type="range" that the value is de...
asked by 12.05.2014 / 06:24
2
answers

Replace the / symbols with Javascript

I would like to know how to replace the < /> symbols with Javascript. I'm using the <code></code> tag to display a code, but I do not want it to be rendered in the browser. I know I can use &#60; and...
asked by 30.03.2014 / 16:04
2
answers

How to open and close modals with jQuery

I'm trying to open a modal, wait 3 seconds, and close it within $( document ).ready() . When I use $('#myModal').modal('show'); the modal appears but when I do $('#myModal').modal('show').delay(3000).modal('hide'); it does...
asked by 29.03.2014 / 22:08
2
answers

How to send string variables as parameter for Ajax call?

The following Ajax call would send to PHP the parameters corresponding to the form that called the function: var foo = "bar"; var bar = "foo"; function register(){ $.ajax({ method: "post", url: "meu_script.php", data: $("#form")...
asked by 26.03.2014 / 18:52
2
answers

My javascript function does not call action controller

I have this javascript function. function loginUsuario(){ alert(); if(($('#txtUsuario').val() != "") && ( $("#txtSenha").val() != "")) resultado = JQuery.parseJSON('{"Usuario": "' + $('#txtUsuario').val() + '", "Senha...
asked by 23.04.2014 / 15:38
1
answer

If Boolean ('0') is true and Boolean (0) is false, why is '0' == false true in Javascript?

Why behave? Example: console.log(Boolean('0')); console.log(Boolean(0)); console.log('0' == false); console.log(Boolean('1')); console.log(Boolean(1)); If I convert Boolean('0') to true is Boo...
asked by 21.09.2016 / 20:41