Passing Raw Values Without Any HTML Tags

UPDATE:

I found a way to get both values. I found a script that when one checkbox is checked it automatically checks the other checkbox. Then i set one input checkbox to display:none and gave it another class and I now I have two scripts that check each checkbox. All that works good, but the remaining problem is how to get the product id value inside the button add to cart without any additional html tags or script tags.

Here’s the script that gets the product ids:

[code]

[/code]

How do you get the values of the ids without any tags!? Thank you