CI and Jquery Loop wont work... |
[eluser]1mr3yn[/eluser]
so how can i pass this " $('#myinput').val($(this).text()); " into a PHP variable??
[eluser]Thorpe Obazee[/eluser]
oh... I misunderstood what you meant. [quote author="r3yn" date="1245329902"]I mean I need to pass this variable '$p_field->name' to the value of <input type="text"> fields within the same page., So that when I click a menu(from a loop)., a dialog box can determined what menu I had clicked, and pass to a php variable so that active records can be done.,.[/quote] You could use Ajax.
[eluser]Thorpe Obazee[/eluser]
[quote author="r3yn" date="1245331239"]but how???[/quote]You could try reading up on Javascript or jQuery, Mootools, etc. Edit: Using jQuery Code: $('.showdetails').click(function(e){
[eluser]Thorpe Obazee[/eluser]
[quote author="r3yn" date="1245335401"]cam you give me a concise overview about this.??[/quote] I suggest you read up on PHP and Ajax.
|
Welcome Guest, Not a member yet? Register Sign In |