Saturday, 29 October 2016

jQuery - Get by ID with space


Watch this example on YouTube



<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
   
    <script  type="text/javascript" src="Scripts/jquery-1.10.2.js"></script>
    <script type="text/javascript">
        $(document).ready(function(){
            $("#Some\\ ID").val('dfasdfladsjfklasj');
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <input id="Some ID" type="text" value ="oiuoui" />
    </div>
    </form>
</body>
</html>

No comments:

Post a Comment