Your understanding is correct! the second select is linked with the selection of the first, but the relevant tax identifier would be based on the first.
Feherke, I appreciate the example on jsFiddle. The example binds the tax amount to the total; whereas, I need my form to be able keep the total taxes on all taxable items separate. It would be something like:
item1=(selected) | item1_subucat=(selected) | qty=2 | cost=$$ | item1_total =$$$...
Thanks, Chris! That is exactly what I think would work, but I'm failing with the code's construction. I suspect that Javascript will still be required; whereas, if I append a "nontax" flag to a select list value on the db and once populated at the html level like so:
<select><option...
I'm sorry, Feherke, I'm not following your question. Are you stating that I'm able to use rel attributes to the html structure I describe above? if so, may I ask for a sample code for a visual understanding. At the moment, I'm failing to understand!
Best,
Mossa
feherke, not sure of your question, but I suspect you are asking why I'm not dealing with input boxes? What I meant is this:
The form consist of 1 table row, in which I have a cascading pair of select boxes. The first select box contains data that determines the content of the second box and...
Thank you all for your thoughts on this!
All those suggestions sound excellent only if I were dealing with inputs or texarea boxes; however, I'm trying to foster the determination based on the selection from a select list --and the data from the select list is populated from db. So...
Good day all:
I'm wondering how does one go about excluding a particular item on a form from being taxed?
I have a check box, which onclick, calculates the sales taxes on all items on the form.
to perform the tax calculation, I'm using:
var tax = ($('#taxbox').attr('checked')) ? (subtotal *...
thank you Vacunita. Got it resolved! following your suggestion, I did the following:
solution:
<input type='hidden' name='categoriesText[]' class='cattext' value=''>
<input type='hidden' name='sub_categoriesText[]' class='sub_cattext' value=''>
and jquery for my pair of select boxes...
vacunita, that is an excellent idea. This works great for one select box and its chained linked equivalent. Now suppose, my form offers the option of adding additional select boxes --dynamically, how would I capture those added dynamically? For visual understanding entirety of my form, here is a...
Hello:
I'm trying to obtain the text value of the select box instead of its numeric value. I have a pair of cascading select boxes which are structured in the following sql:
$r = mysql_query("SELECT sc.cat_id, sc.category_label, ss.cat_id, ss.item_id, ss.subcat_label, ss.invt, ss.product_desc...
I'm populating a chained linked dropdown box with the following code:
$(document).ready(function() {
var data = <?php echo $arr;?>;
var id;
function getData(passCatID){
var content = '';
var content = '<option name="specify id="specify" style="background: url()...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.