Can someone explain how to implement the jQuery File Upload plugin?

I was looking for a similar functionality some days back and came across a good tutorial on tutorialzine. Here is an working example. Complete tutorial can be found here. Simple form to hold the file upload dialogue: <form id=”upload” method=”post” action=”upload.php” enctype=”multipart/form-data”> <input type=”file” name=”uploadctl” multiple /> <ul id=”fileList”> <!– The file list will be … Read more

Change Placeholder Text using jQuery

$(document).ready(function(){ $(‘form’).find(“input[type=textarea], input[type=password], textarea”).each(function(ev) { if(!$(this).val()) { $(this).attr(“placeholder”, “Type your answer here”); } }); }); Copy and paste this code in your js file, this will change all placeholder text from whole site.

Highcharts – Keep tooltip showing on click

I just whipped this up. When you click a point it will persist the tooltip. It does this by cloning the tooltip svg element and appending it to the plot. Here’s a fiddle. $(function () { cloneToolTip = null; chart = new Highcharts.Chart({ chart: { renderTo: ‘container’ }, xAxis: { categories: [‘Jan’, ‘Feb’, ‘Mar’, ‘Apr’, … Read more

Validating array inputs using jquery validation plugin

You have two problems: You aren’t selecting the form element properly. You’re looking for a form with id “voucherform” and your markup does not contain one. You probably want to change your selector to: $(“form[name=”voucherform”]”).validate({ … }); Brackets ([]) are not valid in JavaScript identifiers. This means that your script is not being parsed correctly. … Read more