I have this jQuery code :
Code: Select all
$(document).ready(function() { $("#menu").find('a').live("click",function() { $('body').load("index.php", {'mailbox': $(this).attr('value'), 'controller' : 'mailbox', 'action' : 'mailbox'}); }); $(".message").find('label').live("click",function() { $('#messages').load("index.php", {'id' : $(this).find('input').val(), 'controller' : 'mailbox', 'action' : 'message', 'repeat' : 'yes'}); });}); Why am I thinking so ?
Cause I have this html code :
Code: Select all
<div id="messages"> <div class="message"> {section name="i" loop=$parts} <label>{$parts[i].from}</label> <label>{$parts[i].id}<input type="hidden" value="{$parts[i].id}"></label> {/section} </div> </div> And how can I access input value without changing this part $('#messages').load ?