ishani modi
Posts: 0
Joined: Wed Oct 23, 2013 4:49 am

How to find elements under html components ?

Hi,
I am using tag in html, but i dont know how to find that tag from html and display values in it runtime.

ishani modi
Posts: 0
Joined: Wed Oct 23, 2013 4:49 am

How to find elements under html components ?

hi, can you provide me some syntax how to find if there is canvas element in html component

Giannis Pelelis
Posts: 0
Joined: Tue Nov 12, 2013 8:20 pm

How to find elements under html components ?

Lets say you have an HTML line like that
code <div id="myDiv">Hello World<&#47;div> /code
which result is: Hello World

And now you want to change it to : Hello Europe

In a nutchel use this code : code$('#myDiv')&#46;text("Hello Europe");/code

Explanation
1)Select your div tag with myDiv id ,using jQuery
code$('#myDiv')/code
2)change text of the tag, usign jQuery.
code&#46;text("Hello Europe")/code

Now if you want that to happen when the user press a button you have to add an eventClickRun Javascript
Copy-Paste your code

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

How to find elements under html components ?

preif (!Appery("htmlComponentName")&#46;find("canvas")&#46;length) {
&#47;&#47;there is no canvas in htmlComponentName
}/pre

Return to “Issues”