How Can Change Value Of A Div
'
this is div a
' ' this is div b
' now how can I change the text of div dynamically by button click. here also mentSolution 1:
This will work once the page is being loaded:
document.getElementById('diva').innerHTML =
<?phpecho functionThatReturnsSomeValue(); ?>;
Dynamically, you would need to do an AJAX call on the PHP file which outputs a value. You'd be better off if you used a JS framework such as jQuery, rather than implementing the AJAX call yourself.
Post a Comment for "How Can Change Value Of A Div"