I seem to have a problem with getting field value using javascript and i think the facebook popup jquery script is blocking it but i don’t know why…
I would appreciate if someone could help me out because right now im about to tear my hair off.
<input type="text" id="photo_album_name" style="width: 280px; height: 20px; color: #525252;" />
<textarea id="photo_album_desc" style="width: 280px; height: 100px; color: #525252;"></textarea>
function submit_photoalbum()
{
var albumname = document.getElementById('photo_album_name').value;
var albumdesc = document.getElementById('photo_album_desc').value;
alert("Album name: "+ albumname + ", Album Desc: " + albumdesc);
}
You can view a live example at http://goo.gl/op6r4
Your problem is that you have mutiple elements with the same id => invalid HTML