Next, I have this div below where certain tags contains the type [INFO] [/ INFO]:
<div id="tags">
[INFO id=“rol”]
Rol -> is a greatest project to add in the same people
[/INFO]
[INFO id=“add”]
Add -> is moment who someone pick the ball and shoot in the cars
[/INFO]
[INFO id=“tree”]
tree -> is tree of a views in the other dimensions
[/INFO]
</div>
I created a search engine made in jQuery, where you type something in the text field and click search so that it saves the variable 'SearchText', as you can see below:
$(“#buttonGo").click(function() {
var searchText = $(‘#searchField’).val();
});
After that all I have to do is:
Take the value stored in the variable SearchText, and look for text in div
Then find the text so give a warning showing in which it is located INFO tag, eg:
SearchText var = "views in the other";
He must recognize the tag [INFO id = "tree"] [/ INFO] because the text is located within this tag .... and return the alert should come as follows:
(Tag: Info, Id: tree, desc:"tree -> is tree of a views in the other dimensions")
I do not know where to start, can anyone give me a hand?