i have created a form with zend framework and this form have some elements that all elements h开发者_如何学运维ave a description , i set description with setDescription in design time, i want to know can i change this Description in client side with jquery or javascripts?
from the Zend Fremework documentation
Description: appends the element description. If none is present, nothing is appended. By default, the description is rendered in a
tag with a class of 'description'.
so you can use jquery to change the content of that p tag
i.e. (not verified)
$('#your_form_id_element + p.description').html('foobar');
PS: you probably want to check what markup ZF
output and change the selector I have made
精彩评论