When we change the button to call the function, we have two radio buttons. Below is my code.
& lt; Input id = "ordertype" type = "radio" align = "top" name = "ordertype" value = "new command" check = "" & gt; & Lt; Input id = "ordertype" type = "radio" align = "top" name = "ordertype" value = "additional order (add items to previous order)" & gt;
Jquery code
jQuery (document) .ready (function () {$ ('input: radio [name = "ordertype"]'). Change (work () (if ($ (this) .val () === 'Additional command (add item in previous order)') {var removalpages = 'boothlightingDiv';} and {var removepages = 'furnishingsprovidedDiv';} } ToggleDiv ('boothsizeDiv', removepages);
change the ToggleDiv function parameter based radio button Any help?
I will do something like this:
$ (document) .on ('change', 'input [name = ordertype]', function () {var value = $ (This) .val (); if (value == "Additional Orders (Add Items to Past Orders)") {// which are trying to delete some var = 'Booth Lighting Dive';} and {// or trying to get rid of some var = 'Furnishingprovo div';} alerts (after deletion)});
No comments:
Post a Comment