Questions tagged as 'jquery'

1
answer

html javascript list json data in ul li [closed]

Staff ask for help from friends: The code makes an ajax request to take data from an api (json) and go through all objects inside the array    My json = [{Name: "Ajato 2000"}, {Name: "Crystal I"}] In the case how do I list or print the...
asked by 27.11.2018 / 03:51
2
answers

Get value from a select

I have the following form: Iwouldliketogetthevalueofselectasitaddsmorefields.I'mtryingtogetitthatway,butitonlyreturnsmethePax,thatis,alwaysthefirstvalue,evenwhenIselecttheAdultoranotherselectvalue.<tableborder="0" width="100%"> &...
asked by 25.11.2018 / 19:10
2
answers

JQuery - Tooggle Panels

I need help with Jquery below ... I need every% of% of each% of% to show <div id="flip"></div> . However, the way it is, it only works with the first div content ... on the second when you click nothing happens .. can anyone...
asked by 01.10.2018 / 16:35
2
answers

Put a datepicker in a mvc 5 view with jquery or similar

I have this razor in my view: <div class="form-group"> @*@Html.LabelFor(model => model.DT_AGENDAMENTO, htmlAttributes: new { @class = "control-label col-md-2" })*@ @Html.Label("Data de Agendamento", htmlAttribu...
asked by 11.11.2015 / 17:31
1
answer

AJAX POST WITHOUT REFRESH

I want to make a post without refresh, where it opens a modal confirmation. But it is re-updating the site when the post is submitted and when the e.preventDefault(); is placed the post does not send, because in the confirmation modal...
asked by 13.09.2018 / 15:34
2
answers

Hide modal when clicking "Close" bootstrap

Well, I have the following file with a modal that was made by a friend for me: However, when I click on Open Small Modal it works fine, but when I next click on close the modal does not close again, against if I click outside the close, that...
asked by 22.07.2016 / 20:53
2
answers

Is it possible to permanently change the style of a CSS class using Javascript?

I have the following code snippet: $("#mudarcss").click(function(){ $(".teste").css("background-color", "blue"); }); $("#adicionardiv").click(function(){ $("#conteudo").append("<div class='teste'>Minha Div 2</div>");...
asked by 26.07.2016 / 19:22
2
answers

Add form fields with jQuery to be sent in php

I'm using the following code to add a new group of fields to a form that will be emailed to php $(document).ready(function() { $("a[id='addProd']").click(function() { var domElement = $('<div class="block product" id="...
asked by 28.07.2016 / 15:32
1
answer

How to get the ID of an element inside a div?

I have a div and some images, each image represents an item in a global array . When I drag this image to% editing% an editing form is enabled, otherwise a form is enabled to create new rule and generate a new image. I need to know wh...
asked by 05.02.2015 / 17:45
2
answers

Highlight selected row of table

I have a table where I select a Checkbox to enable a particular input. I would like that when I select this same checkbox, the entire row of the table would be highlighted, showing that the user selected that row. var cbs = document.getE...
asked by 19.02.2015 / 17:50