JAVASCRIPT FUNCTION TO SYCN INPUT ELEMENTS

Published: 27 January 2017
on channel: creativeclerk
38
0

This video will explain a jquery function that will cause input elements to sync their values so that when you change the value of an input type range, it will update other input elements with its value. It is useful in forms where you want to give the user a choice of either using the slider or the number or spinner element.

You can get the code to this project by going to:
http://clerkinthecloud.com//table/pop...

Just right click and copy view source.

The function is:

function sync_inputs(a){

var sync_val = $(a).val();


$(a).siblings('input').val(sync_val);

}

and then call it whenever you change an input element:

$('input').change(function(){
sync_inputs(this)

});


On this page of the site you can watch the video online JAVASCRIPT FUNCTION TO SYCN INPUT ELEMENTS with a duration of hours minute second in good quality, which was uploaded by the user creativeclerk 27 January 2017, share the link with friends and acquaintances, this video has already been watched 38 times on youtube and it was liked by 0 viewers. Enjoy your viewing!