anonīms Posted March 26, 2012 Report Share Posted March 26, 2012 Kā var pārbaudīt vai eksistē selects ar mainīgu #id, bet viens name="" pēc kādas noteiktas vērtības? teiksim select's ar name="attr_prod" un viņam ir options 13? Quote Link to comment Share on other sites More sharing options...
0 xPtv45z Posted March 26, 2012 Report Share Posted March 26, 2012 ar jquery kaut kā tā $('select[name="attr_prod"] option[value="13"]').length Quote Link to comment Share on other sites More sharing options...
0 anonīms Posted March 26, 2012 Author Report Share Posted March 26, 2012 ideāli, paldies Quote Link to comment Share on other sites More sharing options...
Question
anonīms
Kā var pārbaudīt vai eksistē selects ar mainīgu #id, bet viens name="" pēc kādas noteiktas vērtības?
teiksim select's ar name="attr_prod" un viņam ir options 13?
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.