Tagged: html

drupal 6 basic form , create form in drupal 0

drupal 6 basic form , create form in drupal

drupal 6 basic form <?php function test_myform($form_state) { // Access log settings: $options = array(‘1’ => t(‘Enabled’), ‘0’ => t(‘Disabled’)); $form[‘access’] = array( ‘#type’ => ‘fieldset’, ‘#title’ => t(‘Access log settings’), ‘#tree’ => TRUE,...

validation of number in javascript 0

validation of number in javascript

validation of number in javascript function check_number() { var number=document.getElementById(“mobileno”).value; if(isNaN(number)) { alert(“number only”); return false; } else { return true; } }

dynamically add uploading buttons 0

dynamically add uploading buttons

onclick multiple file uploading button,dynamically add uploading buttons <script> var i=6; function generateRow1() { if(i>35) { alert(“no more files are upload”); } else{ var d=document.getElementById(“div1″); d.innerHTML+=”<p><input type=’file’ name=’foods”+i+”‘ size=’6’>”; i++; return false; } return...

Jquery for ajex or jquery for redirecting page 0

Jquery for ajex or jquery for redirecting page

Jquery for ajex or jquery for redirecting page function change_service(obj) { jQuery.ajax({ type: “GET”, url: “index.php?option=com_vmcheck&view=default”, data: “&id=”+obj, success: function(html){ jQuery(“#circles”).html(html); } }); } <select tabindex=”50″ name=”s_provider” id=”s_provider” onchange=”change_service(this.value);”> <option>Select Service Provider</option> <option value=”3″>Airtel...

show and hide dynamic div by jquery 2

show and hide dynamic div by jquery

show and hide dynamic div by jquery <script> $(function () { $(“a”).click(function () { var ID = this.id; $(‘.’+ID).toggle(); }); }); </script> <?php $j=0; while($j<=10) { ?><p> <a href=”javascript:void(0);” id=”content<?php echo $j; ?>” class=”team-readmore”>read...

Creating a Shopify App using Laravel How to Create Custom WordPress Plugin? How to Build a Telegram Bot using PHP How to Convert Magento 2 into PWA?