33
rated 0 times
[
38]
[
5]
/ answers: 1 / hits: 33959
/ 13 Years ago, tue, october 4, 2011, 12:00:00
I have a XML file that contains
<car>
<id>123</id>
<sunroof>FALSE</sunroof>
<service>TRUE</service>
</car>
The following code only works if I wrap TRUE inside quotes e.g (service == TRUE)
var service = tis.find(service).text();
if(service === TRUE){
var service_tag = '<a title=Service href=>Service</a>'
} else {
var service_tag = '';
}
More From » jquery