jquery form select (if exists in $_POST)
- by SoulieBaby
Hi all,
I'm trying to redo this in jQuery:
<script language="JavaScript" type="text/javascript">
var thisIsSelected = '<?php echo $_POST['image']; ?>';
var sel1= document.getElementById('image');
sel1.value = thisIsSelected;
</script>
But I seem to keep breaking it lol
Basically I want jQuery to check if $_POST['image'] exists and if so make it selected on the form. I'm assuming if it's possibly with javascript, jquery can do it easier ;)