Skip to content

Instantly share code, notes, and snippets.

View MosharofHossen's full-sized avatar

Mosharof Hossen MosharofHossen

  • Mirpur-1, Dhaka, Bangladesh
View GitHub Profile
@RakibSiddiquee
RakibSiddiquee / populate-dropdown.html
Last active May 3, 2017 11:50
Populate one dropdown when select another dropdown. You must include the jquery file top of your code...
// There are two ways...
// No:1.......
$(function() {
$('#category').change(function() {
var cat = $(this).val();
$.get('{{ url("categories") }}', {'cat_id': cat}, function (data) {
$('#subcategory').empty();
$.each(data, function(key, value) {