.load function problem
.load function problem
hi there
i have jquery code as below
- jquery.js file
- $(document).ready(function(){
- $(ul#name).load('hello.php?val=0",function(){
- if(conditional statement)
- {
- //do something with li tag generated from hello.php
- }
- elseif(condition)
- {
- $(ul#name).load("hello.php?val=1",function(){
- do something with li tag generated from hello.php
- }
- }
- });
- });
- hello.php
- value=$_get['val'];
- for(loop)
- {
- echo '<li id=$i> $i </li>';
- }
i know i am doing mistake here . i just want to change the value pass throu load like above which is not working
how to achive this
thanks