Quantcast
Channel: jQuery Library for SharePoint Web Services
Viewing all articles
Browse latest Browse all 6517

New Post: SPCascadeDropdowns get selected item ID

$
0
0
Hello all,

Been following the posts, and I have been able to resolve most of my problems.
when it comes to the change event (simpleChild) I able to get it to fire however,
I can't retrieve the new value i get a "Undefined" value return? Here’s what I have so far:

$(document).ready(function() {

$().SPServices.SPCascadeDropdowns({
relationshipList: "PPT_EST_PrinterList",
relationshipListParentColumn: "Sites",
relationshipListChildColumn: "Device",
parentColumn: "Sites",
childColumn: "Printers"
});

$().SPServices.SPCascadeDropdowns({
relationshipList: "PPT_EST_PrinterParts",
relationshipListParentColumn: "Printers",
relationshipListChildColumn: "Parts",
parentColumn: "Printers",
childColumn: "Parts",
simpleChild: true

});
 $("[title='Parts']").change(function(ev){
           alert( $("input[id='" + $(this).attr("optHid") + "']").val() );

   });
});
</script>

Viewing all articles
Browse latest Browse all 6517

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>