Questions tagged as 'javascript'

2
answers

How can I check a check box with an if?

Greetings, I have the following situation: I have a if that as a target I want to mark a radio button , I have tried with scripts but it does not work for me. <div class="funkyradio"> <?php $sql = "SELECT * FROM permiso WHERE us...
asked by 24.12.2017 / 21:02
2
answers

close Bootstrap modal popup

I'm trying to close a modal bootstrap window with a url returned from the ActionResult, but for some reason it's not working: This is my script: $('form').submit(function () { var $form = $(this); $.ajax({ url: this.acti...
asked by 14.05.2016 / 22:50
1
answer

Write txt file with line break

I try to write a txt file, however the document writes it without line breaks. This is the method which receives a data matrix: private void guardarArchivo(ArrayList<String[]> matriz) { String[] fila = null; String lin...
asked by 10.08.2018 / 14:39
2
answers

How to add the selected attribute to the option tag of a select

I would like to know how you should add the selected attribute to the option tag in a list. I was trying several alternatives with jquery or javascript and it has not left me, I do not know what I'll be confusing about. I leave the code so th...
asked by 12.11.2018 / 21:00
2
answers

Can not set property 'onclick' of undefined [duplicated]

I have this code and I get this error Uncaught TypeError: Cannot set property 'onclick' of undefined when I click on opening the modal I get the error, but I give it another click and it will be done with the error, but the idea is...
asked by 07.11.2018 / 18:09
1
answer

problem passing data through AJAX?

Question Create a few days ago a select which is completed automatically by a DB , I asked for help to create a container that had the necessary fields brought from the db , the problem is that when try to do it...
asked by 20.11.2017 / 20:14
2
answers

Error returning a data from Controller php to an Ajax in jQuery

I have a problem returning a data from Controllers/registro in php to% Ajax . The controller receives a data from Model/registro.php , but it does not return the Ajax that data it receives. What could be the r...
asked by 07.02.2016 / 21:29
1
answer

Upload image in Lavarel 5 encrypt and delete with Dropzone.js

I have a problem with Dropzone.js to delete images after being encrypted and upload with Laravel 5 I have the following code: $file = $request->file('image'); $extension = $file->getClientOriginalExtension() ?: 'png';...
asked by 27.02.2016 / 16:01
1
answer

Kotlin javascript dataset

I have an HTML button with a data attribute: <button data-shop-listing='{"name": "Towel", "description": "Sunny days and warm weather - you clearly need it after a refreshing jump into the cool sea.", "price": 10.00}'>Add to cart</but...
asked by 27.02.2017 / 11:31
3
answers

Problem with click jquery

good I've been learning a bit of javascript and jquery for a week but I came to a problem that I could not find a solution for. What I try to do is to make a table from a table to edit its elements in this way: a table with several elements is s...
asked by 30.01.2017 / 15:22