Category "jquery"

Open a new window using data from input form

In a input form in a HTML file, the user is supposed to put an URL (let's call it thislink). Then I want, when the user clicks on the submit button, to open a n

Uncaught NotFoundError: Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node

I am having an issue with Javascript. I'm getting this error message: Uncaught NotFoundError: Failed to execute 'insertBefore' on 'Node': The node before wh

How can I create a Download Page with post php method?

I want to know that how can I create a download page in PHP that download files without reveling the download link to the file, and source to the file and downl

$(document).ready does not work in Rails

I'm using a *.js.erb in my Rails-App, which reacts to a clicked Link. But when I render my page, by getting there via a link_to, I have to refresh the Page, to

How to play sound through HTML buttons

My current method of playing music through my website is by the HTML audio tags. However I want to be able to play it through HTML button instead. This button s

How change nameMonths of fullcalendar to Spanish or any language

I hope somebody could answer, is kind of silly question probably... I would like to change the values of monthnames, monthNamesShort. I found I can change the v

Open Div from Left to Right onClick

I have HTML like: a#clickme{width:20px; height:20px; background:#444; cursor:pointer;display:block; text-indent:-9999px} div.mydiv{width:200px; height:200px;bor

Knockout enable binding not working

I can't get the enable binding to work in Knockout JS. With the enabled property set to false, the button is not disabled and I can still click it. see fiddle

Click button copy to clipboard

How do I copy the text inside a div to the clipboard? I have a div and need to add a link which will add the text to the clipboard. Is there a solution for this

Javascript control data flow by JSON

I have a web application makes in JQuery + KnockOut that reads all data in a JSon format from a web service. The data are reloaded and reparse every seconds wit

How to display validation errors when WTForms is coupled with Jquery Form Plugin?

I am trying to combine WTForms with jQuery Form Plugin. With the latter, I bind a form and provide a callback function. On the other hand, WTForms has to do th

Confirm Leave on External Links in Wordpress

Here's the situation: This is a bank website, so when a user clicks an external link (perhaps to a Facebook page or a partner website), there needs to be a box

Replace null values to empty values in a JSON OBJECT

Hi I've got a JSON object provided by an ajax request. Some of the values inside the json appears as null, but I want an empty String instead My sample of cod

Send same name multiple checkbox values via ajax

I have multiple checkbox input elements. <input type="checkbox" name="userpages[]" id="1" value="1"/> <input type="checkbox" name="userpages[]" id="2

Using more than one bootstrap-datepicker in one page

On my website i need to set 'from-date' and 'to-date'.For this I have 2 text boxes. I used 2 bootstrap date-pickers for the same.Date-pickers are actually worki

Convert input type text into date format

I have one input type text: <input type="text" id="policyholder-dob" name="policyholder-dob" /> I want to type number in this field in mm/dd/yyyy form

how to detect the first page on jsPDF

how can I detect/condition on the first page on jsPDF?? I want to detect the first page so I can apply top margin only on the first page and not on the next pa

Creating live search with AJAX and CodeIgniter

I'm trying to create a live search feature in CI (which I've never done before). I'm pretty new to web development and am still learning things. I found this li

Textbox autocomplete clears if not match in option value

I have here an autocomplete function. What I need is if the value that writing in textbox is not match on option value clear the textbox. Here's what I got righ

Pulling edited text from summernote textarea

I have a list of canned emails in a database. "Thanks for becoming a member", "Thank you for your purchase its on the way" - stuff like that. I am using Bootstr