D
D
des1roer2015-07-24 10:39:28
JavaScript
des1roer, 2015-07-24 10:39:28

Yii change header text on link click?

when you click on a tree element, a frame is loaded by Ajax. the entire page does not reload. how can i use js in controller to change navbar text?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
Walt Disney, 2015-07-24
@ruFelix

add the following JS to the tree view
$('tree_element_selector').click(function(){ $('header_text_selector').text('new header text') });

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question