I know this is simple one . But i get confused . That's why i posted here .
Please see my html structure
<li class="1-li normal"><a href="#"><img src="#"></a></li>
<li class="2-li normal"><a href="#"><img src="#"></a></li>
<li class="3-li normal"><a href="#"><img src="#"></a></li>
<li class="4-li normal"><a href="#"><img src="#"></a></li>
<li class="5-li normal"><a href="#"><img src="#"></a></li>
and i have a string in javascript
var strintg_value="a.html+a.jpeg*b.html+b.jpeg*c.html+c.jpeg*d.html+d.jpeg*e.html+e.jpeg";
here i can split the strintg_value using * make it as array so
strintg_value[1]="a.html+a.jpeg";
strintg_value[2]="b.html+b.jpeg";
strintg_value[3]="c.html+c.jpeg";
strintg_value[4]="d.html+d.jpeg";
strintg_value[5]="e.html+e.jpeg";
and at the end i need to give appropriate value for a href and img src like this
<li class="1-li normal"><a href="a.html"><img src="a.lpeg"></a></li>
<li class="2-li normal"><a href="b.html"><img src="b.jpeg"></a></li>
<li class="3-li normal"><a href="c.html"><img src="c.jpeg"></a></li>
<li class="4-li normal"><a href="d.html"><img src="d.hpeg"></a></li>
<li class="5-li normal"><a href="e.html"><img src="e.jpeg"></a></li>
please help to solve this.
I tried this one strintg_value=strintg_value.split('*');
after that i don't know how to execute the rest .Please help .
split()ting the string sounds like a good first step, please show us your attempt.