Jump to content

jQuery help


narjis

Recommended Posts

Hi, I'm unable to focus on an input field inside a div. here is my code.

<script> 


    $("select").change(function () {
          var str = "";
          $("select option:selected").each(function () {
                str += $(this).val() ;
              });
          $.post("option.php",{data:str},
	  function(data){
	  $("div").addClass('datepicker').html(data);
	  //alert(data);
	}
	);
        });
     //  .trigger('change');
// Datepicker
$('.datepicker').load(function(){
			alert('hello');
});
</script>

Link to comment
https://forums.phpfreaks.com/topic/267356-jquery-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.