how to change one dropdown option with name on change of another dropdown option with value

If you want to change one drop-down option name with change of another drop-down option value for your particular need.I am just introducing drop-down option how to use for on change. Just take a look. I am just going to make two dropdown Dependent.Second dropdown is dependent with option name on first dropdown with option … Read more

custom account product form for vendor or seller in opencart to add products

public_html/domain.com/catalog/view/theme/default/template/multiseller/account-product.form.tpl if You want to create custom dropdown just create from admin mulltimerchant and disable it from admin and got its id value from database for particular attributes and pass them to name of dropdown mean(select) like select name=”product_attributes[16]” 16 id got from database for particular attributes of seller from admin. If You want to … Read more

how to add/remove input field dynamically

JAVASCRIPT $(document).ready(function() { var max_fields = 10; //maximum input boxes allowed var wrapper = $(“.input_fields_wrap”); //Fields wrapper var add_button = $(“.add_field_button”); //Add button ID var x = 1; //initlal text box count $(add_button).click(function(e){ //on add input button click e.preventDefault(); if(x < max_fields){ //max input box allowed x++; //text box increment $(wrapper).append(‘<div><input type=”text” name=”mytext[]”/><a href=”#” class=”remove_field”>Remove</a></div>’); … Read more

how to change second drop down list on change of first drop down list option

HTML <select name=”select11″ id=”select11″> <option value=”1″>Fruits</option> <option value=”2″>Animals</option> <option value=”3″>Birds</option> <option value=”4″>Cars</option> </select> <select name=”select12″ id=”select12″> <option value=”1″>Litchi</option> <option value=”1″>Mango</option> <option value=”1″>Orange</option> <option value=”2″>Lion</option> <option value=”2″>Fox</option> <option value=”2″>Bear</option> <option value=”3″>Parrot</option> <option value=”3″>Hawk</option> <option value=”4″>Maruti</option> </select> JAVASCRIPT $(“#select11”).change(function() { if($(this).data(‘options’) == undefined){ /*Taking an array of all options-2 and kind of embedding it on the select1*/ … Read more

how to calculate value of two textfield and display its sum in third textfield autmotatically

hi,friends i want to show the trick of how to calculate the value of two text-field and got its sum in third text-field automatically and show sum when we type some value in second text-field. JAVASCRIPT <script> function sum() { var txtFirstNumberValue = document.getElementById(‘txt1’).value; var txtSecondNumberValue = document.getElementById(‘txt2’).value; var result = parseInt(txtFirstNumberValue) + parseInt(txtSecondNumberValue); if (!isNaN(result)) … Read more