Questions tagged as 'jquery'

2
answers

function to use query data

I'm building a function that via ajax makes the query a query in the database and via json returns the result. But everything else works I can not use the json object anywhere except inside the function. I have tried to use global variable de...
asked by 27.03.2017 / 22:41
1
answer

Make code only work on Desktop [duplicate]

How do I make a code, JQuery / JavaScript only work on Desktop? That is, in mobile phones and tablets, I do not want it working ... With CSS I use Media Query, but with JavaScript I get a little lost. Thank you!     
asked by 05.05.2017 / 14:50
2
answers

Show / Hide Fields using radiobutton and jQuery

How do I make the fields come hidden and only appear with the selection of a radio? I'm going to put down the fields and the script that I use to hide as I click (which is already working), my problem is that when I open the forms, the fields...
asked by 23.03.2017 / 14:09
2
answers

Hide div with fadeToggle when clicking outside it

It has a li with the 'user-login-menu' id that when clicked opens a div with a sub-menu, but you can only close it by clicking again on li. I would like it to be possible to close the div by clicking both on and off the li. I have tried with...
asked by 22.03.2017 / 18:26
1
answer

Reload table without refresh with Ajax jQuery

I have a table that has the option to update records, but I need to change a record when it changes dynamically in the table without having to refresh. is already working the part of the server it already changes the data and tals .. but I need...
asked by 24.04.2017 / 19:42
1
answer

Change input radio checked by Jquery

I have one more question here in the forum rs. I created a pure css framework, I made a slider with input radio + label but had not put animation (second second switch between them). More than just now (using it on a client) I saw that it was...
asked by 15.03.2017 / 20:46
1
answer

button copy and paste with jquery

I would like to 'create' the copy command and the paste command with jQuery. I have a form and I need to put a paste button on it to make it easier for the user The user clicks to copy the embedding URL of youtube and in my form would have...
asked by 02.03.2017 / 20:06
1
answer

Ajax, HJS and Mustache

I do not like writing HTML in Ajax, like this ... var orderTemplate = "" + "<li data-id='{{_id}}'" + "<p><strong>Nome:</strong> <span class='noedit nome'>{{ nome }}</span>" + "<input class='edit nome'>...
asked by 17.05.2018 / 00:17
1
answer

Replace HTML entities inside a Div

I have code html and I need to replace part of it with another html , this code is inside a div . Code: <div id="aba-per" class="et_pb_module et_pb_tabs tab-per et_pb_tabs_0"> <ul class="et_pb_tabs_controls c...
asked by 17.02.2017 / 21:44
1
answer

How to collect and insert gradient properties from one div to another div

There is this # And there, as you can see, when we click on the small squares of choice with gradient it loads all the gradient properties to another larger div. I researched here: link html_toggleclass.asp $(function(...
asked by 20.02.2017 / 02:49