Questions tagged as 'jquery'

1
answer

From a selected checkbox, get the value of a date attribute next

Good afternoon, I have a checked checkbox (check = true) <div class="form-group col-xs-12 col-sm-12 col-md-3 col-lg-3 space"> <div class="input-group"> <span class="input-group-addon"> <input type="radio" id="c...
asked by 22.03.2017 / 18:56
1
answer

ASP NET MVC with JQuery

I made an ajax request, but it does not call the controller, when debugging javascript never drops in success and the console appears Error processing XML. Controller: [HttpPost] [ValidateAntiForgeryToken] public ActionResult Cadastro(Pedid...
asked by 30.03.2017 / 19:48
3
answers

Put the options of an input select into a variable

Good evening. Is it possible in a select multiple to save the chosen options in a variable and keep the options chosen? Example: <form class="form-inline"> <select id="opcoes" multiple name=opcoes[] > <option...
asked by 04.04.2017 / 23:54
1
answer

How to pass multiple arrays to page in PHP

→ $scope.items = []; → dados = $('#meu_form').serialize(); I would like to know: how to send / receive / read the above arrays to a page in PHP? JavaScript: app = angular.module("app",[]); app.controller("control...
asked by 05.01.2017 / 01:27
1
answer

call .keypress (e) only if .change (e) is OK

Hello, I need some help. I have a input[type=text] field that I have triggers on it, a .change trigger and a .keypress . However, in .change I call a field validation function and in .keypress I check if the user pres...
asked by 05.01.2017 / 11:58
3
answers

Change a select based on the selection of another select (from data in the DB)

I have the following problem: In a form, I need to make a selection of a MANUFACTURER, and according to this selection, it will display the PRODUCTS bound to that manufacturer only. I have the following table where I register the MANUFACTU...
asked by 05.01.2017 / 17:40
2
answers

How to check input text before posting?

Follow the code: @using (Html.BeginForm("Update", "Account", FormMethod.Post, new { @class = "form-horizontal", role = "form", enctype = "multipart/form-data" })) { . . . <input type="text" name="lastname"> <input type="submit" class=...
asked by 03.01.2017 / 00:07
2
answers

Change the image according to the screen resolution

I'm studying something in jQuery for the case. Is it possible to change an image according to the screen resolution? For example: in the browser itself, with it without minimizing is the large image. If minimized, the function switches...
asked by 20.03.2017 / 01:32
2
answers

Error while showing and hiding a div with Jquery

Sirs, good morning! I'm trying to show and hide an image if it satisfies the set conditions, but they appear only after the else, not understanding what I'm missing. That is, the div cancel1, cancel2 and cancel3 are not appearing when if is atte...
asked by 21.03.2017 / 14:20
1
answer

How to click on an image and it will be selected?

Colleagues. I have a list of images that I'm bringing this way: <?php for($img = 1; $img <= 29; $img++){ ?> <a class="image-popup-fit-width img-thumbnail" href="images/exclusivos/<?php echo $img; ?>g.jpg" title="Bo...
asked by 22.03.2017 / 15:27