hi dear Friends
How Are You?
i have a simple problem
this problem makes me
mad !
i want to email
div contents via
php and
form tag.
i have 2 divs with this classes:
- .simpleCart_items
- .simpleCart_total
i want to fetch contents from this dives and insert contents in
input or
textarea`s. then submit form to my php file
i`m wrote this jquery codes :
$('#shopform').submit(function(){
var items = $('.simpleCart_items').text();
var tprice = $('.simpleCart_total').text();
$('#itemsinfo').val(items);
$('#totalprice').val(tprice);
});
and this is my inputs :
<textarea id="itemsinfo" style="width:320px; height:160px"></textarea>
<input type="text" id="totalprice"/>
but it dosnt work :-( contents didn`t Move to input tags.
plz help me to fix this problem
thanks