Questions tagged as 'javascript'

5
answers

Add onClick event to element created with createElement

I have the following code: FForm.prototype._addControls = function() { // main controls wrapper this.ctrls = createElement( 'div', { cName : 'fs-controls', appendTo : this.el } ); // continue button (jump to next field) **thi...
asked by 01.10.2014 / 18:21
3
answers

DOM search for name and value positive [duplicate]

I need to search the DOM for name and value. I'm trying to do this $('input[name=FLG_SEXOX_CLIEN value="{{ $cliente->FLG_SEXOX_CLIEN }}"]').attr('ckecked').trigger("chosen:updated"); But this is not working, in the console this message...
asked by 08.12.2016 / 19:56
4
answers

Fill in text inputs after checking checkbox and clear when unchecked

When marking the chekbox all fields must be filled with the anonymous word and unchecking it clears the fields. My html: <form> Deseja anonimato? <input type="checkbox" id="anonimo"> <input type="text" id...
asked by 30.10.2018 / 20:40
4
answers

How to convert datetime into abbreviated date brazilian model

I have an object JSON that returns me an attribute datetime . However, I would like to display it in Brazilian short form. Example JUN 24, 2014 . JSON attribute: data { date: "2014-06-16 21:56:29" } I would like to do...
asked by 24.06.2014 / 21:34
4
answers

JavaScript money format with AngularJS and jQuery

Good morning everyone. Next, I need to make when the user exits with the focus of the field or when typing it, format this field according to the format of money, first in the Brazilian format. Example: 14700.25 or 14.00. Without the dots,...
asked by 10.07.2015 / 15:00
3
answers

Why is onBlur not running?

I was wanting to perform a Javascript function when dropdown lost focus. I'm doing it this way, using onBlur, and it's not working: function DesabilitaFiltro() { alert("ok"); } <div class="form-group"> @Html.DropDownList("Se...
asked by 06.10.2015 / 18:57
3
answers

How to update page title with notifications? [closed]

I am making a script that updates the page title and places how many notifications the user has before the current title. However as it is dynamic and updates this page to check if there are new notifications it is giving problem in the title. L...
asked by 15.01.2016 / 11:46
2
answers

Display a loader while processing ajax

You can display a message like: "Loading ..." while my ajax does the operation? AJAX $.ajax({ url: url, type: 'GET', dataType: 'json', succes...
asked by 18.03.2015 / 18:16
2
answers

What is a nodeList object in JavaScript?

I know that in JavaScript we have array s , which most languages have. But my doubts are relative to a nodeList in JavaScript. What is a nodeList object in JavaScript? How can I access elements of a nodeList...
asked by 10.10.2018 / 14:05
3
answers

How do I know if an object is an array in javascript (without jquery)?

I would like to know how I can identify whether or not an object is a array in Javascript. I know that in jQuery there is the $.isArray function. But I'd like to learn to do this without jQuery . I tried typeof a...
asked by 29.07.2015 / 14:51