I have a HTML from.
<input type="checkbox" class="checkit" id="10" name="Tid" value="10">
<input type="hidden" id="23" name="Bid" value="23">
The target is: Link checkbox to hidden field, to pass 2 parameters in Ajax.
In OUT I want something like this : Tid:10, Bid:23
Yes, I can put Bid in checkbox name field, but I looking for a clear/professional way to do it.
P.S If I use only checkbox, no problem, I can get all values in serealizearray(), but I need pass 2 values instead of 1.
<input type="checkbox" class="checkit" data-bid="23" id="tid_10" name="Tid" value="10">. Now use JS to get the values.