How to Get Value of Div Content Using jQuery

Hello guys, if you want to get value of div content using jQuery then you can fulfil your need using this example. Just check out this tutorial. HTML <div class=”readonly_label” id=”example”> Other </div> JQUERY First include jQuery library <script src=”https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js”></script> <script> $(document).ready(function(){ var divContent = $(‘#example’).text(); alert(divContent); }); </script> Read Also: How To Write a … Read more

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