Questions tagged as 'jquery'

1
answer

Pass the return (integer) of a method from Controller to View

I have this method in a controller : int GetSpot() { List<CompanyDetail> topCompanies = GetTopCompanies(); CompanyDetail topCompany1 = topCompanies.Where(x => x.Company.TopCompany == 1).FirstOrDefault(); if (topCompany1 ==...
asked by 08.02.2017 / 19:28
1
answer

Editable table with jquery and php?

I'm trying to make a PivotTable for editing the data without refresh, but by double-clicking the line nothing happens, it follows the JQuery code $(document).ready(function(){ $('#tblEditavel tbody tr td.editavel').dblclick(function(){...
asked by 31.01.2017 / 20:26
1
answer

Getting whole words with RegExp in Jquery

$.fn.wrapInTag = function(opts) { var tag = opts.tag || 'strong', words = opts.words || [], regex = RegExp(words.join('|'), 'gi'), replacement = '<' + tag + '>$&</' + tag + '>'; return...
asked by 11.12.2016 / 21:58
1
answer

How to send Images via AJAX to php

Good afternoon, I would like to ask for your help. Home I have a system where I need to send an Image of a <input type="file>" to a PHP page via $.ajax() to it, I can upload this image to a sufficient one, while I take the pa...
asked by 03.12.2016 / 18:48
1
answer

Disable Radio Button from a table based on the value of an input

I have a table whose first column is an input and the rest of the columns is a group of radio buttons. This first input can only be informed values from 1 to 4. The Radio buttons start disabled, and can only be selected if the input value is 3 o...
asked by 24.10.2017 / 20:23
1
answer

Discover image size that was inserted by input file

I am creating a system to organize the images of a website, that is, I will store information such as name, extension, size, height, width, ... and I am having trouble picking up the height and width data The codes are currently: jQuery:...
asked by 08.09.2017 / 16:42
3
answers

How do I open a floating div style tooltip when clicking an input?

Hello. I have a problem that I can not resolve. I have an input of type text and needed that when I clicked it open a window or floating div underneath it like a tooltip but with HTML inside it. How can I make when I click on a <inpu...
asked by 07.09.2017 / 14:51
1
answer

Div cloned (jquery) elements only work on the original div

I'm using the "cloning" of divs in jquery, and inside of them I have other divs that when clicking on a button eg: DIV 1, DIV 2, DIV 3 with javascript shows the contents of each div. But when I add the new div (cloned) when I click the button to...
asked by 04.11.2016 / 01:09
1
answer

How to display a list coming from a Json sub-array?

I'm building divs dynamically via Javascript. I want to make her content display some information (username, emails, etc). The data is coming from the Database in Json format. The problem is that it does not display all participants. Displays...
asked by 04.11.2016 / 18:04
1
answer

Remove first p tag and last / p string tag with jQuery

I have a string with several HTML tags. I want to remove only the first tag <p> and the last tag </p> of this string. I've found solutions that remove all tags but these do not work. Example: <p> Lorem ip...
asked by 17.08.2016 / 17:01