I have an idea, but not sure how to do it… If I use the last example and then somehow in my javascript function would be able to, like in php, extract the code=1 so I would get only the “1”…
Yes, you would have to do some simple string manipulation within your ajaxcombo function. The way you have it set up at the moment, your ajaxcombo is just receiving two static strings. You also need it to receive this.value like your first function (so a third argument). Then extract the code number from the string, using a regular expression or one of the string functions.