JQuery For Download Button

I am working on a project which is cropping uploaded image in circle and then save it for preview. Here is also a button for download saved image which is cropped. Here is my main php page: <html lang="en"> <head> <title>PH...
more »

2017-05-14 14:05 (1) Answers

Focus on button instead on input field

I have an input field and a close button. When page loads it focus on the input text field (in ready) but the same focus command $("#param_pattern_value").focus(); in other function (when clicking on tab) focus on the close button instead on the text...
more »

2017-05-14 11:05 (1) Answers

Select folder instead of single file - input

I want the input type to be folder and not a single file. How can I select a folder instead of just a single file. Also how can I then access each file in that selected folder. I tried this to select a folder but didn't work. I am on chrome. <i...
more »

2017-05-13 23:05 (1) Answers

Form input validations using pure CSS

Is there any way to apply CSS classes based on HTML element's property (not based on element's attribute) without using JavaScript? For example, consider below input element: <input type="text" id="txtName" class="form-field__input" name="txtNa...
more »

2017-05-13 22:05 (1) Answers

Delete all selected objects with Fabric.js

I'm using Fabric.js and while I can remove single objects (with "Trash" button) but would like to be able to remove any selected objects. Currently when I select more than one object nothing is removed. I've seen this answered but it's only for multi...
more »

2017-05-13 18:05 (1) Answers

DRY in javascript for dynamic fields

Just starting out with Javascript so the query/question, I have a dynamic field script (not mine) which adds/subtracts with a press of a button. Works good, does the job. $(document).ready(function() { var max_fields = 10; //maximum input box...
more »

2017-05-13 10:05 (1) Answers

Error in reading objects from jQuery Array

I am trying to create an array and add data to the beginning of it. Then with a for loop I print out all the data. However, it prints an error, as Uncaught TypeError: Cannot read property 'title' of undefined. var coords=new Array(); coords.u...
more »

2017-05-13 00:05 (2) Answers

Scale content to always fit window

I have a problem with overflows on the y-axis. I'm looking for a solution to scale all content so it always will fit at 100% width and 100% height. Since I'll never know how much content will be put in, it has to scale to fit the active window. Hidin...
more »

2017-05-12 14:05 (2) Answers

Trouble with navbar and scroll jQuery

I need help, my navbar is transparent background, so when I do scroll > 540px the navbar turns black, but when the scrolling is > 540px and updated the page the navbar becomes transparent until I make a minimum scroll, how can I fix the problem? <...
more »

2017-05-12 01:05 (1) Answers

How create Multiple Select Box in Django?

I am tring to create Multiple Select Box field from Django Select 2 library as in the picture below? I used next code but it return simple select multiple widget. I think I forgot something to add. Where is my mistake? Can someone show me how create ...
more »

2017-05-11 16:05 (2) Answers

Displaying only last array in list

I have this problem whit array output. Only last array is displayed in the list. But I want to display all of these arrays whit jQuery. $(document).ready(function(){ $("ul").append("<li></li>").text(filmi.Movies[0].Title) //La L...
more »

2017-05-11 14:05 (7) Answers

Delay GIF until onclick (CSS/Javascript)

I have a gif that loads once (i.e gif doesn't loop) when a button is clicked. This is used to signify that a user has successfully copied their serial number as shown in this screenshot: I have set this up using the following code, CSS: .greentic...
more »

2017-05-11 12:05 (1) Answers

Cant pass value of checkbox through ajax

I have table received from database: <p id="result"></p> <?php //$id = $_SESSION['staff_id']; $teamResult = getQuarter($leader_id); $count1 = 0; if (mysqli_num_rows($teamResult) > 0) { ?> <table id="confirm"> ...
more »

2017-05-11 09:05 (1) Answers

Slider Animation, Automatic & Alternative

I have a slider, where it allows you to swipe a card left or right. I would like to have the slider swipe left 1 time, and swipe right 1 time, automatically & infinitely. Can anyone help with this? It will be GREATLY appreciated. link to codepe...
more »

2017-05-11 08:05 (1) Answers

Check single row checkboxlist

i create a table row will auto generate data from sql and bound in by backend code. Is it a way check that user has click or not by using javascript? The row is create as below: <tr> <td align="right" class="formLine">Brand Type:<...
more »

2017-05-11 08:05 (2) Answers

how to change the color of track for range slider?

I have to change the track color of range slider,I tried with css but in chrome it is not working,At last I find a solution using jquery(link),So I implemented,but I am not getting expected output. Jquery: $('.text-size-slider .slider').change(func...
more »

2017-05-11 08:05 (2) Answers

Selenium to click a button

I am trying to use Selenium to click a button with the following HTML code: <a id="ctl00_ctl00_cphMain_main_ucSearchResult_rptPager_ctl01_btnPageNumber" class="pager2"href="javascript:__doPostBack('ctl00$ctl00$cphMain$main$ucSearchResult$rptPager...
more »

2017-05-10 22:05 (2) Answers