Hi I am using PHP 5 as a back end language with Jquery in front end. In one of the database, we have auto generated numbers as a primary key. Now we are calling that number as a id to the div in HTML. But it looks like div doesn't accept number.
Now i want to transfer that number into some string, which i can pass through the div. Again we have to convert that string into same earlier number so that we can query the database.
the html code looks as below
<div id = "something">
<span class = "class1">...</span>
...
...
...
<span class = "class5"> ...</span>
</div>
please note that
$( "#something").children(".class5").html("response");
doesn't work here since something is integer...hope i am clear
here "something" is a integer which i wish to convert into string. After getting inside div, i want to convert string into the same earlier number.
Now guide me how to convert int to string so that i can put in div ..and then again that string back to same int....
i have two options...to use jquery/javascript ..or through php....thank you