Questions tagged as 'jquery'

1
answer

How do I make with .fadeToggle () make several elements appear?

The thing is that I wanted to click on a "button" (I put it in quotes because it's just a button in appearance) different options are displayed. This I do with the animation of Jquery .fadeToggle() Why is only the first optio...
asked by 21.10.2017 / 16:18
2
answers

problem getting the javascript data value

I have a problem getting data from a javascript data In the html I have the following line <span id="internet-compl" class="internet-item" data-precio="${empty elem.extraVl?0:elem.precio }" data-cantidad="1" data-vel="${elem.velocidad}"...
asked by 24.10.2017 / 20:21
2
answers

I am working with DATATABLE, how can I save the current page that I am in, and then return to show the same page?

Greetings, I'm new to the community! I hope corrections in case the question is wrongly formulated! I have data in a Dashboard from a DB that are paginated. I'm using DataTable. When pressing on one of the products I go to the details of it....
asked by 24.10.2017 / 13:43
1
answer

Submit when selecting a checkbox

I am trying to put the <script> of this code in a function of type .click() so that the form was sent every time the checkbox is pressed and thus do without the <input type="submit"/> . What the form does i...
asked by 17.10.2017 / 11:00
2
answers

Datepicker does not work

again asking about datepicker with Bootstrap It turns out that perfectly appears the calendar but the options that I give seems to barely recognize the format. The rest is long and especially I need to block previous dates to which I mention. Th...
asked by 20.10.2017 / 15:24
1
answer

Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https

$(document).ready(function(){ $.ajax({ url: 'https://swapi.co/api/people/1/?format=json', type:'GET', dataType: 'JSON', success: function(json){ console.log(json.name); $("h2.name").text...
asked by 17.10.2017 / 17:14
1
answer

Generate a class btn link from an input

I am trying to generate a link (preferably a button) that is generated dynamically with the content of an input, I think I have gone far by modifying jquery codes. The link I want is a url like this: "index.php? order_of_purchase=" to which a...
asked by 20.10.2017 / 18:11
3
answers

Send variables by AJAX to a PHP file [closed]

Why do not the variables from ajax to php pass? This is the script: $(document).ready(function(){ $("#editarot_btn").click(function(){ var ot_antigua = $("#ot_editar").val(); var ot_nueva = $("#nueva_ot")...
asked by 18.10.2017 / 14:35
2
answers

How to simulate a Ctrl + Click on a link?

I want to simulate a Ctrl + Click on a link to open another tab but in the browser does not follow that new tab, I mean? I want to stay on the same tab. The example and problem: <a class="btn btn-small" href="/en/upload-file" data-original-...
asked by 18.10.2017 / 05:03
1
answer

how to make a field input type password show the last 4 characters

I would like to do as they do that the fields input with type password can show the 4 characters, it is very common in the areas where you pay with a card, that you put your card and shows you the last characters or digits     
asked by 02.10.2017 / 00:26