PDA

View Full Version : Ext.select - comma in attribute



gene4000
4 Feb 2012, 10:39 PM
Worked:

Ext.select('a[value=1]')

But if I need find value = "1,2,3"

<a value="1,2,3">
Ext.select('a[value=1,2,3]')
it crashes.

Has this problem a solution?

I know about

Ext.select('a[value^=1]')
it find value = "1,2,3",
but it find for example value = "111"

mitchellsimoens
5 Feb 2012, 9:42 AM
Ext.select should be able to take an array of selectors

gene4000
5 Feb 2012, 9:59 AM
It is not an array. It is one value.
String "1,2,3" is possible for <input> value for example.