Questions tagged as 'jquery'

0
answers

Uncaught Error TypeError: Can not read property 'length' of null

I'm doing employee selection, using Select2. I use these inputs: <div class="form-group"> <div class="row"> <div class="col-md-12"> <label>Destino</label> </div> </div>...
asked by 18.11.2018 / 18:06
0
answers

Refresh combobox with data from another Rails table

I have a "professions" field that appears inside the "patient" table. The field "professions" is autocomplete with gene chosen. I want to create a "new profession" button where when searching the combobox and not finding the desired profession,...
asked by 13.11.2018 / 00:20
1
answer

JQuery mask only alphabetic with strange behavior

I'm trying to add a mask to a field to accept only alphabetic characters. Apparently I was able to find a solution . Code $(function () { $("#name").keypress( function(key) { if((key.charCode < 97 || key.charCode >...
asked by 21.11.2018 / 20:47
0
answers

Unauthorized Text to Speech Watson IBM

I have a problem when trying to make a request through the api text-to-speech, when trying to make the request it gives the following error: { "code": 401, "error": "Unauthorized" } My JS code $(function () { $("#btnPOst"...
asked by 13.11.2018 / 12:30
0
answers

PreventDefault SweetAlert2

I have this function that overrides all my native JS alerts, however, sweetAlert does not automatically give preventDefault , which causes the next lines of code to run immediately after the alert is displayed. Is there a way to get eve...
asked by 13.11.2018 / 13:42
0
answers

How to get a javascript variable from another page?

For example, on a page it has a script tag like this: <script>var X = "variável que quero pegar";</script> How could you get this "X" variable on another page just by url and transpose it to the current page? Consider that the...
asked by 19.11.2018 / 22:58
0
answers

How to remove an index from the localStorage

I need to manipulate localStorage and I'm not sure how to remove an item from an index. I'm very new to the subject and I'm not sure how to pass this information to the button. Follow the code: var base; //verifica se tem alguma...
asked by 11.11.2018 / 22:24
1
answer

How to access the object window from another page

I am making a request via Ajax, I can capture the html, but I wanted to have access to the object window of the page that made the request, is it possible? Example how I'm using. $('#link').click(function(){ $.ajax({ url: 'www.goog...
asked by 12.11.2018 / 01:56
1
answer

How to pick specific item On the laravel blade

How do I get a specific item in Laravel blade ? Example: $(document).ready(function(){ var id = 1; $('body').append('{{ $projeto->'+id+'->name}}' }) <body> Deve Aparecer aqui o nome do projeto </body>     
asked by 12.11.2018 / 12:49
3
answers

How to add the amount of days with jQuery

I'm trying to manipulate dates with jQuery. The idea is as follows: The user informs Data_vencimento and type (in radio button ), whether the payment will be weekly, biweekly, monthly or informed. In% with% entered, the user w...
asked by 12.11.2018 / 13:55