Identifying xslt value-of select in jquery to add a space between two classes
Hi There
I am using a query filter system to filter projects by type. The jquery is using the class to identify and match the project to its group when the group name is clicked. The jquery is finding any spaces between the project names and replacing with a - in order for them to display. The client wants to be able to use a checkbox to select other categories for it to filter into so i've added a check box data type and added my categories to that, i've then used concat in the value-of select
This is bringing out the list correctly with the checkbox prevalues however it won't put a space inbetween the nodeName class and the otherCats classes as i'm using jquery .replace for spaces. Is there a way i can target this one space without affecting the other parts.
Identifying xslt value-of select in jquery to add a space between two classes
Hi There
I am using a query filter system to filter projects by type. The jquery is using the class to identify and match the project to its group when the group name is clicked. The jquery is finding any spaces between the project names and replacing with a - in order for them to display. The client wants to be able to use a checkbox to select other categories for it to filter into so i've added a check box data type and added my categories to that, i've then used concat in the value-of select
This is bringing out the list correctly with the checkbox prevalues however it won't put a space inbetween the nodeName class and the otherCats classes as i'm using jquery .replace for spaces. Is there a way i can target this one space without affecting the other parts.
Here is the jquery
Any help would be greatly appreciated. Thanks
Molly
Hi Molly
Not sure if I'm missing anything but would'nt it help if you simply add a space in this line?
<xsl:value-of select="concat(../@nodeName,' ',otherCats)" />
/Jan
Thanks Jan, i've already tried that however the jquery function is replacing the space with -
I was hoping there would be a way to identify the xslt "otherCats" value in the jquery to target a space.
Thank you
is working on a reply...