If my title seems stupid, forgive me. I'm a newbie in jQuery and I don't know to explain my problem using the correct jQuery terms.
So I asked this question a while ago and got the perfect answer. My problem now is that the value in my dropdownlist is not that simple and the solution given to me fails because of that.
The code given to me was $("select[id*='ComboBox'][value!=0]").length + offset;
. In my sample code that's fine because the values are 0, 1, 2, 3. But in reality the values are like default_price1, code1_price2, code2_price3... So basically the values are concatenated strings. I know how to split strings but my problem now is how do I integrate that with my previous code?
$("select[id*='ComboBox'][value.split('_')[0]!==default]").length + offset;
doesn't seem to work.
Is that even possible? Thanks again.
Here's the jsfiddle as requested: http://jsfiddle.net/annelagang/scxNp/20/