jQuery Time Duration Picker Example

jQuery Time Duration Picker Example

jQuery Time Duration Picker Example

In this Post We Will Explain About is jQuery Time Duration Picker Example With Example and Demo.Welcome on Pakainfo.com – Examples, The best For Learn web development Tutorials,Demo with Example! Hi Dear Friends here u can know to jQuery Custom Time Duration PickerExample

In this post we will show you Best way to implement jquery-time-duration-picker, hear for jQuery Simple Time Duration Pickerwith Download .we will give you demo,Source Code and examples for implement Step By Step Good Luck!.

jQuery Simple Time Duration Picker Example

first of all simple create index.html page as well as some External libs and css add.

  Laravel 6 MySQL Get Last Inserted ID

Include Markup HTML Part with External libs(jQuery)

<!DOCTYPE html>
<html lang="en-us">
  <head>
    <meta charset="UTF-8">
	<title>jQuery Time Duration Picker Example Step By Step</title>
    <link rel="stylesheet" href="https://code.jquery.com/ui/1.12.0/themes/smoothness/jquery-ui.css">
    </style>
  </head>
  <body>
<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.min.js"></script>
<script src="https://rawgit.com/digaev/jquery-time-duration-picker/master/dist/jquery-time-duration-picker.min.js"></script>

<!-- .......some code..........-->
</body>
</html>

Make a HTML file and define markup

<h2>jQuery simple Time Duration Picker</h2>
<hr/>
 <div class="well"> 
	<input id="custom_duration" type="text" readonly="readonly" placeholder="Click me!" class="form-control">
	<input id="seconds" type="hidden">
</div>
<hr/>

Make a js file and define scripting

$(function() {
	$('#custom_duration').timeDurationPicker({
	years:true,
	months:true,
	  onSelect: function(element, seconds, custom_duration) {
		$('#seconds').val(seconds);
		$('#custom_duration').val(custom_duration);
	  }
	});
  }); 

full Example : jQuery Time Duration Picker

<!DOCTYPE html>
<html lang="en-us">
  <head>
    <meta charset="UTF-8">
	<title>jQuery Time Duration Picker Example Step By Step</title>
    <link rel="stylesheet" href="https://code.jquery.com/ui/1.12.0/themes/smoothness/jquery-ui.css">
    </style>
  </head>
  <body>

<h2>jQuery simple Time Duration Picker</h2>
<hr/>
 <div class="well"> 
	<input id="custom_duration" type="text" readonly="readonly" placeholder="Click me!" class="form-control">
	<input id="seconds" type="hidden">
</div>
<hr/>
<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.min.js"></script>
<script src="https://rawgit.com/digaev/jquery-time-duration-picker/master/dist/jquery-time-duration-picker.min.js"></script>
    <script>
		$(function() {
			$('#custom_duration').timeDurationPicker({
			years:true,
			months:true,
			  onSelect: function(element, seconds, custom_duration) {
				$('#seconds').val(seconds);
				$('#custom_duration').val(custom_duration);
			  }
			});
		  }); 
   </script>
  </body>
</html>

Example

  Great UNIX Commands Tutorial for Beginners

I hope you have Got What is jQuery Simple Time Duration Picker And how it works.I would Like to have FeadBack From My Blog(Pakainfo.com) readers.Your Valuable FeadBack,Any Question,or any Comments abaout This Article(Pakainfo.com) Are Most Always Welcome.