Boostrap Auto Suggestion

In this code we will do three things: We will  make Ajax call to get suggestion remotely Place the Suggestion in input box After that It will  call a remote ajax call to get the relevant data for the particular suggestion HTML FORM  <input id="cc_pay_to_name" class="typeahead form-control" step="any" type="text" placeholder="Enter Full Legal Name" /> JAVASCRIPT … Continue reading Boostrap Auto Suggestion

Advertisements

Replace Tab to Enter

<script> // REPLACE THE TASK OF ENTER jQuery.extend(jQuery.expr[':'], { focusable: function (el, index, selector) { return $(el).is('a, button, :input, [tabindex]'); } }); $(document).on('keypress', 'input,select', function (e) { if (e.which == 13) { e.preventDefault(); // Get all focusable elements on the page var $canfocus = $(':focusable'); var index = $canfocus.index(this) + 1; if (index >= $canfocus.length) … Continue reading Replace Tab to Enter

আপনি কেন jQuery শিখবেন

আপনি কেন jQuery শিখবেন 😊 … =============================================== jQuery কোন প্রোগ্রামিং ল্যাঙ্গুয়েজের নাম নয় ... কেউ কেউ আবার এটাকে জাভাস্ক্রিপ্ট ফ্রেমওয়ার্ক মনে করেও ভুল করেন … jQuery জাভাস্ক্রিপ্টের কোন ফ্রেমওয়ার্কের নাম নয় … JQuery is simply a specific library of JavaScript codes nothing else ... . jQuery এর প্রাইমারি ফোকাস হল ডেভেলপমেন্টের টাইম স্প্যান কমানো … … Continue reading আপনি কেন jQuery শিখবেন

Countdown & interval based example

  var countdown = $("#countdown").countdown360({ radius : 100, seconds : 120, fontColor : '#FFFFFF', autostart : false, onComplete : function () { console.log('done') } }); countdown.start(); $(document).on("click","button",function(e){ e.preventDefault(); var type = $(this).attr("data-type"); if(type === "time-remaining") { var timeRemaining = countdown.getTimeRemaining(); alert(timeRemaining); } else { var timeElapsed = countdown.getElapsedTime(); alert(timeElapsed); } }); $(function() { var nre … Continue reading Countdown & interval based example

Jquery onchange value change

var bankinfo= {}; bankinfo['BRAC'] = 1; bankinfo['HSBC'] = 1; bankinfo['ICBI'] = 2; bankinfo['HSBC'] = 2; bankinfo['ABBL'] = 82; $('.dynamicselect').bind('change', function () { // bind change event to select var bankname = $(this).val(); $('#rate').val(bankinfo[bankname]); });

Sample Jquery

<script> function confirmPayment(){ $('#modal_payment_amount').html ($('#payment_amount').val()); $('#modal_reseller_name').html ($('#reseller_name').val()); $('#modal_payment_memo').html ($('#payment_memo').val()); } function makePayment(){ var amount = $('#payment_amount').val(); var pin = $('#payment_pin').val(); var reseller_id = $('#reseller_id').val(); var data1 = "action=add&reseller_id="+reseller_id+"&amount="+amount+"&pin="+pin ; $.ajax({ type: 'POST', url: "paymentaction.php", data: data1, success: function(mes) { $("#myDiv").html(mes); }, }); ; }