Questions tagged as 'jquery'

3
answers

Turn bold text with php

Good Night, I'm having a big problem, it's the following, I'm having a textarea form to send texts to the database, and what I want to do is to get a snippet or a word that is contained between certain characters and modify them to a tag ... To...
asked by 29.06.2018 / 00:39
2
answers

Browsing List List in Jquery (JSON)

Well, I have a JSON, which will be returned by an ajax, with the following structure: { "ExtensionData": {}, "CodCli": null, "Codigo": 0, "Data": "/Date(-62135589600000)/", "Detalhes": { "ExtensionData": {}, "Carregamento": "001 - JUND...
asked by 24.04.2015 / 16:20
3
answers

pass 2 parameters in button's OnClick event

I have the following code that I would like to pass the txtCodEmpreendedor and txtNameEmpreendedor IDs of the fields below as a parameter to the AddEprepresent / p> <script> function AdicionarEmpreendedor(codigo, item) {...
asked by 04.04.2018 / 21:26
2
answers

Get data-attribute of a selected option when clicking button

I wished that by clicking the button I would be able to pull value and data-dado of the selected option. I tried the code below, but it did not work: $("#botaoexemplo").on("click", function() { var valor = $('#exemplo...
asked by 09.04.2018 / 21:58
2
answers

Autocomplete JQuery 1.9.1

I have an application using JQuery 1.9.1 (uses the old version because it has functions in the menu that only work in this version), I am trying to autocomplete, but it is giving error $(...).autocomplete is not a function Does anyone k...
asked by 06.03.2018 / 12:45
2
answers

Detect click on the same dynamic and non-dynamic item

When I click on the item, the function changes the class of this item so that it can be detected by the other function when clicking. The problem is that when I use .click , click is normally detected, but when I click again (alread...
asked by 08.03.2018 / 23:05
2
answers

Send array to PHP via Ajax

I want to send a vector from javascript to PHP. I have the following code but it is not working. How to do it? info = []; info[0] = 'thiago'; info[1] = 'carlos'; alert(info[0]); $.ajax({ type: "GET", data:...
asked by 06.03.2018 / 20:01
1
answer

Mask in array

I have a form that I am adding or removing lines as increment data, through the buttons. This form has 2 fields with a mask, but it turns out that the mask only works on the first line and not on the following lines. Follow the code:...
asked by 18.04.2018 / 14:57
1
answer

How do I get part of the string from the size of a word?

I want to take only the name of the subject of a h1 containing the following text: "ENF N1A METHODOLOGY OF SCIENTIFIC RESEARCH (MONTH)". In the case what interests me in this string is the value "METHODOLOGY OF THE CINENTÍFICA RESEARCH". The ide...
asked by 16.04.2018 / 16:53
3
answers

execute JQuery calculation for each corresponding div

I'm creating a star rating system but I can not get the jquery to apply the correct Width for each span in the example below. I have three DIVs and each of the 3 divs inside them has <span class="ratingAverage" data-average="1.2"></sp...
asked by 21.09.2018 / 23:58