Questions tagged as 'jquery'

2
answers

How to add rows to a table from another table with search engine

I am making a simple system for my business everything is going well until now that I get stuck, I hope you can help me I would be grateful enough, I explain a bit of my code and its function first. I have this input that searches for the pro...
asked by 23.02.2018 / 22:54
2
answers

I need to Paint an array of objects in an option of a Select

I need that with the jquery library and the .append tool through a foreach loop the object name appears in an option of a select, I have an array of objects: [Object [id = 1, attribute2 = example], Object [id = 2, attribute2 = example2]] I ha...
asked by 24.02.2018 / 16:44
1
answer

Validate a tagsinput field of emails with jquery validate

I have a field with which the user adds several email addresses and they are saved in tags. The plugin I use for this is the bootstrap tagsinput. It would be necessary to validate each tag as an email. The html of the field is the following: &...
asked by 28.02.2018 / 18:12
1
answer

How can I verify that the URL is correct?

Good I am breaking my head with this situation and I do not even know where to start. I have a list of valid URLs for an input, let's say 10 url from where users can enter links in an input, what I'm looking for is that if the user enters a link...
asked by 28.02.2018 / 19:19
0
answers

Save cut image with jquery.Jcrop.js

Save the image I do not know how to do it the code is this <?php if ($_SERVER['REQUEST_METHOD'] == 'POST') { $targ_w = 150; $targ_h = 150; $jpeg_quality = 90; $src = 'sago.jpg'; $img_r = imagecreatefromjpeg($src); $ds...
asked by 28.02.2018 / 19:36
2
answers

If there is no element of the DOM, which creates it (JQuery / Javascript)

I check if there is an element with jQuery or not by its id, but it throws me an error. This check is made in a callback within the instance of an element. I need to do that check there, since it is the point at which it collects the data and mu...
asked by 27.02.2018 / 16:30
0
answers

how to fix the error 'Access-Control-Allow-Origin' sending POST with ajax?

I am sending a data through POST with ajax, but it never sends since I get that error "Access-Control-Allow-Origin" and I could not solve it, this is the code: $.ajax({ /*url: 'https://webto.salesforce.com/servlet/servlet.WebToLead',*/...
asked by 21.02.2018 / 21:36
0
answers

How to edit an external iframe?

I have read that you can change the content of an iframe external% by jQuery in the following way: <script> $(document).ready(function () { $('#el_iframe').load(function () { $(this).contents().find("p").c...
asked by 21.02.2018 / 21:48
2
answers

How to select a radio input within a div

I have a JS code that when I select one of the 2 radio inputs of a form, it returns me if the question is correct or incorrect. I need to please know how to select the radio click where you click on the div because when I click on the div it onl...
asked by 21.02.2018 / 15:27
0
answers

Laravel Argument 1 passed to Illuminate \ Database \ Grammar

I want to save a request and at the same time with the same ID save the detail that of articles that come with it. public function store(Request $request){ $this->solicitud->save(); foreach ($request->descripcion as $dat...
asked by 20.02.2018 / 23:15