Questions tagged as 'javascript'

1
answer

How to traverse the siblings with jQuery?

What I want to do is that when I hover over a star, all previous ones have a "selected" class, I tried to use siblings together with each one and I almost got the result where I wanted it. The result I want to get is something like this: JQU...
asked by 28.05.2017 / 18:32
1
answer

How to change html according to return value?

I made the jQuery datatable server side all right activation. All functional. However, in the first column I return 1 for active and 0 for inactive. I wanted it to be 1 (active), appears in the place of the number 1 : <i class='ace-icon...
asked by 06.07.2017 / 17:13
1
answer

List is being populated but the properties are null

Hello, I'm using the following method in C #: public ActionResult Gravar(int pCodigo, string pDestino, int pRespDestino, int pOs, int pProjeto, string pEstabelecimento, string pObs, int pPim, string pAlmoxarifado, List<RequisicaoIte...
asked by 06.07.2017 / 21:40
1
answer

Open a modal window for authentication

I have in my code a conditional if that when false should open a window and request a user's authorization, password and justification. If it does not satisfy the conditional, I will add a query in a session $_SESSION['QryAuth'] = $...
asked by 01.06.2017 / 18:13
1
answer

Filter for a multidimensional array

How could I do to bring everything in the view and filter on a combobox by the class option? $scope.dadosUserAndTurma = [ { idUser:20, nome: "Carlos", turmas: [...
asked by 19.05.2017 / 17:01
1
answer

Why does not this JavaScript code work?

Why does not this JavaScript work? JavaScript code: $('#basic_validate').submit(function(e) { document.getElementById('successmsg').style.display = 'none'; document.getElementById('errormsg').style.display = 'none'; e.preventDef...
asked by 29.05.2017 / 23:21
2
answers

HTML component for selecting multiple items

I need to know the name of this component and the logic of this component in Javascript. If you can indicate something with ' drag n drop ', it would be even better. The text in BLACK is the components and ASH are the explanations (tra...
asked by 20.05.2017 / 05:38
1
answer

How to apply sessionStorage or localStorage in code

I'm using the following code: <script type="text/javascript"> $(window).scroll(function() { if ($(this).scrollTop() > 300){ $('.float-menu-fixed').removeClass("closed"); $('.float-menu-fixed').addClass("visible"); }...
asked by 21.05.2017 / 07:46
1
answer

How to make two RadioButtons enable and disable fields

Each radio button enables and disables two fields, two by two. When the first radio is clicked the first two textBox are enabled and the last two are deactivated. When the second radio button is clicked the first two textBox are di...
asked by 23.05.2017 / 19:08
1
answer

jQuery and css menu

The icon is not aligned equal to the text Well follow the code of the menu, I thank you for the help. $(".top_menu ul").each(function() { alignMenu(this); var robj = this; $(window).resize(function() { $(robj).append($($($...
asked by 24.05.2017 / 03:27