jquery - Outputting String to HTML using javaScript -


there have been many questions before, answer involved referencing element outputted within script. in case, elements created dynamically on load (it's hosted on tumblr, specific), there's no referable id each of elements need output string to.

is possible this? jquery can used if makes things simpler. function takes string input , outputs string using return.

$('.post .posttext a') -> returns array of a elements.

$('.post').eq(the post number).find('.posttext a') -> replace "the post number" number of post if want target more specific.

you can call text("your text") method set text.


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

inno setup - TLabel or TNewStaticText - change .Font.Style on Focus like Cursor changes with .Cursor -