Questions tagged as 'jquery'

1
answer

Capture the value of the selected item in selectOneRadio with JavaScript

I have this component Primefaces: <p:selectOneRadio id="mercado" styleClass="teste"> <f:selectItem itemLabel="Interno" itemValue="I"/> <f:selectItem itemLabel="Externo" itemValue="E"/> </p:selectOneRadio> I t...
asked by 29.11.2017 / 01:52
1
answer

Friendly URL with JQuery

Hello, everyone! My system is developed in JQuery, so I make changes to pages without loading, just with $ .get (). The big question is: even without loading, I need the URLs to be changed, making the system even more user friendly. I can alr...
asked by 29.11.2017 / 21:00
2
answers

Fixed menu after scrolling

I want to make the menu stay fixed after some scrolling, <script> $("document").ready(function($){ var nav = $('.menu-topo'); $(window).scroll(function () { if ($(this).scrollTop() > 150) {...
asked by 09.11.2017 / 19:49
1
answer

Combox appear if there are records

I have a form where the user selects the size, automatically fills in the color combox: TheproblemisthatthesizeswillnotalwayshavecolorsandIwishthatiftherewerenocolors,thecolorboxwouldnotappear.Lookatthecode:PHPif(mysqli_num_rows($sqlTamanhos...
asked by 10.11.2017 / 16:14
1
answer

How do I switch between 2 style sheets?

Well, I have a site that all its color is gold and black . Some font colors in gold, then golden, gold sidebar, etc ... How do I, when I put a button on the side of my site, written "purple version", and the visitor clicks this button, ch...
asked by 10.11.2017 / 05:31
3
answers

Operations with multiple input js

I'm developing a system and in a certain part it has the following structure, image below Followthecode WhatIwanttodoiswhentheusertypesinthe"Braces" field and in the field "Weight" he makes an account and returns the value in the field "Total P...
asked by 29.09.2017 / 16:25
1
answer

Paging with Jquery

I searched some websites and here in the stack looking for how to create a paging script with the following characteristics: Elements are collected at HTML I can use the function at any time and in any element, just invoking it and...
asked by 04.10.2017 / 21:34
1
answer

HiddenFor - Submit loses value the first time

Follow the code below: Index: @{ ViewBag.Title = "Home Page"; } <div class="modal fade" id="minhaModal" tabindex="-1" role="dialog" aria-hidden="true"> <div class="modal-dialog modal-lg" role="document"> <d...
asked by 05.10.2017 / 01:52
1
answer

Find element to remove via jQuery

I have a routine in JS which is as follows: $('body').on('click', 'a.remover', function(e) { e.preventDefault(); $(this).closest('.info').html("<p>Escolha ao lado</p>").parent().find('input[type=hidden]').val(); }); I wo...
asked by 04.10.2017 / 22:59
1
answer

How to check the size of a div and adjust it by jquery?

How can I check the size of a div with jquery? The height of this div is automatic, but I would like to limit its size. I'm assigning a class to this element, since it's within a loop of my server application, so it will repeat itself. The logic...
asked by 08.11.2017 / 20:58