Span doesn't get updated within div

janj

New Member
Hello I'm trying to update div span text from ajax call, here is my html structure :\[code\]<div id="23" class="message product error"> <strong> <br> <strong>Unique id Id:</strong> <span class="uniqueId" style="color: #000; font-weight: bold;">job_201208311928_78749</span> <br> <strong>Job Status:</strong> <span class="status" style="color: #000; font-weight: bold;">IN PROGRESS</span></div>\[/code\]I'm trying to update status \[code\]IN PROGRESS\[/code\] to \[code\]SHIPPED\[/code\]But my jquery fails to do it :\[code\]function update (item){ $('#' + item.id + "span.status").text(item.CurrentStatus);}\[/code\]\[code\]Item.id\[/code\] and \[code\]item.CurrentStatus\[/code\] both have right values when I alert.
 
Back
Top