Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <%= "<s" + "cript>" %>
- $('#Service').click(function() {
- var Item = $('#Service').val();
- $('#Site').find('option').each(function()
- {
- var Id = $(this).attr('class');
- if (Id === Item)
- $(this).show();
- else
- $(this).hide();
- });
- })
- $('#Service').on('change', function() {
- var Item = $('#Service').val();
- var Site = $('#Site .'+Item).val();
- $('#Site').val(Site);
- })
- $(document).ready(function() {
- var Item = $('#Service').val();
- $("#Site option").each(function()
- {
- var Id = $(this).attr('class');
- if (Id === Item)
- $(this).show();
- else
- $(this).hide();
- });
- });
- <%= "</" + "script>" %>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement